Error 400 in query MySql

I use these block to build a query that works on phpmyadmin

image

this is the php file:
https://pastebin.com/fMNwyZmA

i had another "query" changing the name in query1 all is fine Sorry for the post

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.