Pisząc pewien skrypt napotkałem na mały problem. Chcę wyciągnąć pewnie informacje z bazy, poprzez zapytanie
SELECT catalog.id,catalog.tracks, catalog.title, catalog.catalog_number, catalog.country, catalog.type, catalog.other WHERE catalog.id IN ('16','18') ORDER BY catalog.ORDER DESC LIMIT 0,10
jednak dostaje komunikat:
Cytat
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE catalog.id IN ('16','' at line 2
Po usunięciu ' ' z IN()
Cytat
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE catalog.id IN (16,' at line 2
Nie mam pomysłu co mogę robić źle.
Z góry dzięki za pomoc
Kriszna