select count(t1.codimagem) from imagem t1 where t1.codobj= and t1.sizetype=1
1064
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 t1.sizetype=1' at line 1