Érvénytelen lekérdezés: SELECT DISTINCT st_markak.title, st_termekek.marka_id FROM st_termekek LEFT JOIN st_markak ON st_markak.id = st_termekek.marka_id WHERE kategoria_id = ORDER BY st_markak.titleYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY st_markak.title' at line 1