ERROR
Your query: SELECT id FROM content_ru WHERE pos< and itype= and visible=1 order by pos desc limit 1
MySQL said: 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 'and itype= and visible=1 order by pos desc limit 1' at line 1
ERROR
Your query: SELECT id FROM content_ru WHERE pos> and itype= and visible=1 order by pos asc limit 1
MySQL said: 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 'and itype= and visible=1 order by pos asc limit 1' at line 1