Okay, please look at these changes:
load($users, $usersMeta) = getRecords(array(
'tableName' => 'users',
'where' => 'featured = 1',
'allowSearch' => false,
'loadUploads' => false
));
$featuredIds = array_pluck($users, 'num');
// load records from 'equipment'
list($equipmentRecords, $equipmentMetaData) = getRecords(array(
'tableName' => 'equipment',
'limit' => '15',
'where' => 'user IN ('.mysql_escape(implode(',',$featuredIds)).')',
'orderBy' => 'RAND()',
'loadUploads' => true,
'allowSearch' => false,
));
Please make sure you change the table name in the first getRecords to the name of the relevant user table, and change the variable name in the where parameter in the second getRecords to whatever it should be for the user num.
--------------------
Claire Ryan
interactivetools.com
Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/