Произошла ошибка: Ошибка в ходе выполнения запроса (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 '-27 ) 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 where I.REALSTATUS and I.STATUS and I.SALE and I.BRAND_ID=7 order by I.RANK desc limit 48,-27 ) R left join CATALOGUE C using (CATALOGUE_ID) left join BRAND B on(B.BRAND_ID=R.BRAND_ID)