this is my query
$query = "select f1,f2 FROM tablename ORDER By f3 DESC, RAND() limit $offset, $limit WHERE f5='$search'";
result
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource
if i remove the WHERE f5='$search' it works fine, but i need to narrow the results by matching f5 with $search
Thanks in advance