This is not a Duplicate, the link proposed doesn't help me at all
Recently I'm having a problem on my website where you get a white screen with a MySql Select Query showing. Sometimes it's not a white screen but part of the page loaded, then somewhere (an include) there's just a Select Query and the rest of the page doesn't load.
Most of the time, in the Select Query showing up, the information in there isn't right, for example my query (in the code) is "Select * from X where id='".$userid."'" and on screen it's written "Select * from X where id=0" but the id should never be 0 normally.
It happens when there's a lot of people on the website, sometimes there's also an error saying that there is more than what the max_connection allows.
I don't know how to track the problem, I don't know the steps to isolate it, so it's pretty hard to fix since I don't understand it.
If you have any help it would be very usefull!
Thank you!