products.id

$order = ($order == 'id') ? 'products.id' : $order ;