SELECT id, title1, description_seo, keywords FROM rubrics WHERE raz_id=cat and cat_id= and sub_id=rub and rubric_id=

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 'and sub_id=rub and rubric_id=' at line 1