select * from gdc_cat_niveaus where nivId=34,1,21,28,27,20,23,25,11,

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 '1,21,28,27,20,23,25,11,' at line 1