DATABASE ERROR:

SELECT *
                FROM cms_znakomstva_cats
                WHERE (published = 1 OR OR bysms = 1) AND parent_id = '1'
                ORDER BY title ASC

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 'OR bysms = 1) AND parent_id = '1' ORDER BY title ASC' at line 3