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 'FROM newFramesOnlyPrice WHERE nfp_id=8' at line 1 Error2 SELECT nfp_cm,nfp_in, FROM newFramesOnlyPrice WHERE nfp_id=8