SQL Error: 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 q.id <= 194 AND q.id != 123 AND q.tag = 31 AND q.status = 'published' AND q.' at line 1 at /home/admin/web/otvetof.org/public_html/libs/Questions.php line 217
Array
(
    [code] => 1064
    [message] => 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 q.id <= 194 AND q.id != 123 AND q.tag = 31 AND q.status = 'published' AND q.' at line 1
    [query] => SELECT q.id as ARRAY_KEY, q.title, q.date, q.tag, t.title as tag_name, t.link as tag_link, u.id as user_id, u.name as user_name, u.rating as user_rating, u.image as user_image FROM questions q, tags t, users u WHERE q.id >=  AND q.id <= 194 AND q.id != 123 AND q.tag = 31 AND q.status = 'published' AND q.tag = t.id AND q.user = u.id ORDER BY q.id DESC LIMIT 10
    [context] => /home/admin/web/otvetof.org/public_html/libs/Questions.php line 217
)