I’m trying to do a simple query (below) to see if there are no rows found in a table. If there are none, then do something.
SELECT COUNT (*) as count FROM AT_vbc_content_status
However, I keep getting this error…
You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use
near ‘*) as count FROM [name of my table] WHERE member_id= ’16” at
line 1
Where am I going wrong?
You have to remove the space between COUNT and (