Range
is a reserved word.
http://dev.mysql.com/doc/refman/5.5/en/reserved-words.html
Try adding backticks around it.
$get_active_image = mysql_query("SELECT * FROM media WHERE media_type = 'image'
AND `range` = 'global' ORDER BY news_id DESC LIMIT 0,1");
It may work on your local host due to a different version of MySQL in which it is NOT a reserved word.