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 source LIKE 'Eurostat'
ORDER BY anno ASC, mese ASC, country ASC' at line 3: SELECT anno,mese,country,D1110D__THS_T,D1110D__THS_T_flags,source
FROM eu_production_data
WHERE country LIKE 'GB' AND anno>=-1 AND mese<= AND source LIKE 'Eurostat'
ORDER BY anno ASC, mese ASC, country ASC