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 (name = 'wdgt_servizi_primary_color' OR name = 'wdgt_servizi_secondary_co...' at line 1SQL: SELECT id_negozio, name, value, data_creazione, data_modifica FROM negozi_settings WHERE id_negozio = AND (name = 'wdgt_servizi_primary_color' OR name = 'wdgt_servizi_secondary_color' OR name = 'wdgt_servizi_background_color' OR name = 'wdgt_servizi_font_family' OR name = 'wdgt_servizi_button_style' OR name = 'wdgt_servizi_disable_guest')