select `p`.*, `c`.`id` as `c_id`, `c`.`check_wholesale` as `c_wholesale`, `c`.`category_name` from `products` as `p` inner join `manage_category` as `c` on FIND_IN_SET(c.id, p.category) > 0 and `c`.`id` = 203 and `c`.`check_wholesale` = 0 where FIND_IN_SET(177, p.category) Allowed memory size of 402653184 bytes exhausted (tried to allocate 199233536 bytes)