Problem with Double WHERE statement

2 posts by 2 authors in: Forums > CMS Builder
Last Post: September 8, 2010   (RSS)

By zip222 - September 8, 2010

Not sure why, but the double where statement below is not working. Any ideas why?

<?php
$where="";

if(!$CURRENT_USER['staff']){
$where = "conflicts_of_interest NOT LIKE '%\t".intval($CURRENT_USER['num'])."\t%'";
}

list($applicationsRecords, $applicationsMetaData) = getRecords(array(
'tableName' => 'applications2010',
'where' => $where AND 'full=1',
));

?>