Wrong queries in ConnectionPanel

SQL in connection panel

before:
select new_path 
from Redirects 
where id_web=54 and old_path IN('/dane-a-mzda/kalkulacky-a-aplikace/cestovni-nahrady/'+src+'')

after:
select new_path 
from Redirects 
where id_web=54 and old_path IN('/dane-a-mzda/kalkulacky-a-aplikace/cestovni-nahrady/\'+src+\'')