Error: 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 '' at line 1
SELECT t1.*, `t1`.`comments_active` `comments`, t9.`path`, '0' `account_id_edit`, '0' `favorite` FROM `v2206_listings` t1 LEFT JOIN `v2206_categories` t9 ON t1.`category_id` = t9.`id` WHERE t9.`status` = 'active' AND t1.`status` = 'active' ORDER BY RAND() LIMIT

Debug backtrace: