Appinventiv interview question

How to concatenate two queries in php