Plus simplement déjà :

$qid2 = $bdd_planning->prepare(SELECT * from `tabledate` where id_user=? and champdate = ?);
$qid2->execute(array($data1['id_user'],$a.'-'.$m.'-'.$jour));...