change this
$query = mysql_query("SELECT * FROM $usertable WHERE $metode LIKE '%$search%' LIMIT 0, 30 ");
to this
$query = mysql_query("SELECT * FROM $usertable WHERE $metode LIKE '%$search%' LIMIT 0, 30 ")
or die(mysql_error());
that will tell you what is wrong with the query, and that is why you are getting an error, because your query isn't returning results
also try splitting the query with the result so you can echo the query alone to ensure you are getting the $variables into the query correctly, i write my queries like
$query = "SELECT * FROM $usertable WHERE $metode LIKE '%$search%' LIMIT 0, 30;";
//here you can do echo $query; to see the actual query you are running
$result = mysql_query($query) or die(mysql_error());
while ($row = mysql_fetch_array($result)) //blah...