table_alias('r')
->select_many_expr('r.id rid','r.name','r.created_at','r.main_image')
->inner_join($config['db']['pre']."user","u.id = r.user_id",'u')
->limit(5)
->order_by_desc('r.id')
->find_many();
foreach ($getItem as $ads) {
$ad_id = $ads['rid'];
$ad_title = $ads['name'];
$ad_location = $ads['location'];
$ad_created_at = $ads['created_at'];
$ad_pic = !empty($ads['main_image'])?$ads['main_image']:'default.png';
?>