Warning: mysql_fetch_assoc(): Can someone help me with this?

Im not sure how to fix this problem i get the mesg: Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/a326878750/public_html/tree/database.php on line 255

here is a piece of the code any help plz?

mysql_query("UPDATE videoer SET video_views=$views WHERE video_id=$id");
}


function video_alle($order) {
if(!isset($_GET['side']))
{
$lala2 = "0";
}
else
{
$tal1 = $_GET['side'];
$tal2 = $tal1 * 16;
$tal3 = $tal2 - 16;
$lala2 = $tal3;
}
$query = mysql_query("SELECT * FROM videoer ORDER BY $order DESC LIMIT $lala2, 16");
while($row = mysql_fetch_assoc($query))
{
if($row['video_type'] == "youtube")
{
echo
'


';
if($row['video_views'] >= "15000") { echo ''; }
if($row['video_id'] >= "2222" && $row['video_views'] = "15000") { echo ''; }
if($row['video_id'] >= "2222" && $row['video_views']