Could not query the table.
SELECT id FROM tb_categories WHERE purl = '' username_avatar '' AND pid = ''1064: 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 'username_avatar '' AND pid = ''' at line 1