SELECT termekek.*, wishlist.termek_id FROM termekek LEFT JOIN wishlist ON wishlist.termek_id = termekek.id WHERE wishlist.vasarlo_id = ORDER by sorrend
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER by sorrend' at line 1