VALLADOLID en VALLADOLID
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 'AND cat2.id_course IN (22,23,26,28,31,34,38,39,41,42,44,45,49,51,57,63,64,66,69,' at line 3