Appinventiv Interview Question

How to concatenate two queries in php