Skip to content
Advertisement

I’m not using count but my log told me “count syntax error”

I have a request who look like this in PHP:

JavaScript

My logs give me this error:

COUNT field incorrect or syntax error” at /var/www/WebService/src/Controller/DefaultController.php line 893

The line 893 is : ':nom' => $nomClient, I don’t understand why there is a “count” in the error, and don’t know how to resolve it.

Advertisement

Answer

You have to concatenate the like wildcards to the parameters, e.g.:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement