You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '://kulichki.ru/~gumilev/HEU/heu1212.htm order by message_id LIMIT 0,20' at line 1: select phorum_messages.* from phorum_messages where (forum_id = 2 OR forum_id=0) and thread=118http://kulichki.ru/~gumilev/HEU/heu1212.htm order by message_id LIMIT 0,20