This how you can can print the query with parameters generated by db_select() .
print strtr((string) $query, $query->arguments());
die; //Stop execution here and show me the querymake sure you print it before query execute;
$result = $query->execute();
0 Comment(s)