Backslashes are what MySQL uses to escape single quotes.
Some other RDMS use the doubling of single quotes.
If Delphi has a problem with sending escaped queries to MySQL, then Delphi has a problem.
That's not PHP's problem, and its not MySQL's problem either.