Hello,
I'm trying to generate a list limited to 3 random records where the logo upload field is not empty.
----------------------------
list($organizationRecords, $organizationMetaData) = getRecords(array(
'tableName' => 'organization',
'limit' => '3',
'where' => 'logo IS NOT NULL',
'orderBy' => 'RAND()',
));
----------------------------
However, I'm getting this error:
MySQL Error: Unknown column 'logo' in 'where clause'
Any help would be appreciated.
Thanks