I am using PDO in php. But when my query have any keyword like " ' " means hyphen it breaks and through an error. I ready through on internet and find solution to bind parameters with query and it works fine. But the issue is i am building the query in loop and i am not able to bind parameters within loop. Here is code in which i am splitting the array with space and run query on every keyword. The first 3 words will have only like query and more then 3 words i am using loop to concatenate the all array elements and same with more then 6 words i am using MATCH query. Is there any way to escape that hyphen or how can we bind parameters using loop in my case?I am using PDO in php. But when my query have a