querry problem

$query = db_select // is not working correctly. Need to resolve it