Ошибка БД
Error Number: 1064
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 '-40, 20' at line 7
SELECT `A`.`id`, `A`.`prod_id`, `A`.`name`, `A`.`description`, `A`.`cost`, `A`.`availability`, `B`.`image_s` FROM (`goods` A) LEFT JOIN `goods_images` B ON `B`.`good_id`=`A`.`id` WHERE `A`.`publish` = 1 AND `A`.`category_id` IN (6) ORDER BY `name` LIMIT -40, 20