Произошла ошибка: Ошибка в ходе выполнения запроса (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 '-20,20' at line 13) select I.*, B.NAME as BRAND_NAME, S.NAME as CONSIST_NAME, C.CATNAME as CATNAME, RAND() as RAND_ from ITEM as I inner join CATALOGUE as C on C.CATALOGUE_ID=I.CATALOGUE_ID and C.REALSTATUS=1 left join BRAND as B on B.BRAND_ID=I.BRAND_ID and B.STATUS=1 and B.NAME != "" left join CONSIST as S on S.CONSIST_ID=I.CONSIST_ID and S.STATUS=1 and S.NAME != "" where I.STATUS=1 and I.CATALOGUE_ID=5 order by I.ITEM_ID desc limit -20,20 send mail