Dotaz: SELECT SQL_CALC_FOUND_ROWS A.*, C.title AS category, (SELECT CONCAT(filename, ext) FROM images WHERE advert_id = A.id ORDER BY poradi, date, id LIMIT 1) AS imagefile FROM advertisement AS A INNER JOIN category AS C ON C.id = A.category_id INNER JOIN user AS U ON U.id = A.user_id WHERE A.active = 1 AND A.category_id IN () AND U.active = 1 ORDER BY A.top_date DESC, A.id DESC LIMIT 585, 15
Chyba: 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 ') AND U.active = 1 ORDER BY A.top_date DESC, A.id DESC ...' at line 5