1064 - 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 shop_ids like '%s_2_shop%'' at line 1

select count(*) as count from categories where parent_id = and shop_ids like '%s_2_shop%'

[XT SQL Error]