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 's' and (p_type=165 || p_type=166 || p_type=167 || p_type=168 || p_type=169 || ' at line 1