Possible Duplicate:
mysql_fetch_array() expects parameter 1 to be resource, boolean given in select
I am getting Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\FBlike\like.php on line 104
in my script..
I'm not sure what that means and why it is happening.. help :)?
$like_id=mysql_real_escape_string($_GET['id']);
$sql=mysql_query("select * from likes WHERE id=$like_id DESC LIMIT 1");
while($row=mysql_fetch_array($sql))
{
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="<?php print $row['like']; ?>"/>
<meta name="keywords" content="<?php print $row['like']; ?>" />
<meta property="og:description" content="Click to See More..." />
<meta property="fb:app_id" content="" />
<meta property="og:title" content="<?php print $row['like']; ?>"/>
<meta property="og:type" content="activity"/>
<meta property="og:url" content="http://www.fbquote.me/like.php?id=<?php print $row['id']; ?>" />
<meta property="og:site_name" content="pDank" />
<title><?php print $row['like']; ?></title>
<?php } ?>