Произошла ошибка: Ошибка в ходе выполнения запроса (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 '-24 ) R left join CATALOGUE C using (CATALOGUE_ID) left join BRAND B on(B.B' at line 3) select R.*, C.NAME as C_NAME, C.TITLE as C_TITLE, B.NAME as BRAND_NAME from ( select I.* from ITEM I inner join CAT_ITEM CI on (I.ITEM_ID=CI.ITEM_ID and CI.CATALOGUE_ID=209) where I.REALSTATUS and I.STATUS order by I.RANK desc limit 264,-24 ) R left join CATALOGUE C using (CATALOGUE_ID) left join BRAND B on(B.BRAND_ID=R.BRAND_ID)