I use this php code
$tbs->MergeBlock('pic',$DB->Link_ID,"SELECT * FROM picture WHERE ((picture_f_performance_id='%p1%') AND (picture_filename NOT LIKE 'x%'))") ; |
and the query (with p1 replaced ofcourse) works perfectly when I try through phpmyadmin. It excludes all pictures with a name starting with an x
However, when I use the above code, it shows all pictures that meet the picture_f_performance_id requirement and including the ones starting with an x !!
Why does that happen, and how to stop it??