Error Number: 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 ID in (select parentID from `t_Products` where parentID is not null and...' at line 1SELECT count(*) FROM `t_Products` WHERE parentID is null and isHidden is null and `categoryID` IN () and ID in (select parentID from `t_Products` where parentID is not null and sizeOptionID = 120 and qnt>0)