I have this query
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS('
SELECT p.`id_product`, pl.`description`set, pl.`information`
FROM....
i have also this variable :
$myvar=array('information2','information3')
i want to rewrite my query like this (add values from $myvar to the SELECT) :
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS('
SELECT p.`id_product`, pl.`description`set, pl.`information`,pl.`information2`,pl.`information3`
FROM....
How can i do this ? And it is possible to write a function for changing the query without write into the original query (=$result) ?