Error in count statement with mysql

This topic has arisen on several occasions and although it seems very complicated, the solution is quite simple.
You just have to remove the space between count and the (. The query would look like this:

select count(column) as alias from table where column=data

The difference is almost imperceptible but it is just enough so that the sentence does not work for you.

On the other hand, I tell you that it worked for you in the database administrator because it surely optimizes the sentence and removes spaces automatically.

See also  How to use PHP 8 on a Laravel Homestead site
Loading Facebook Comments ...
Loading Disqus Comments ...