mysql查询导致资源id不在字符串JSON中[重复]

Possible Duplicate:
mysql_fetch_array() expects parameter 1 to be resource, boolean given in select

I am querying a field which contains JSON data. but

json_decode($result)

gives an output like: json_decode expects parameter to be string, resource given in line.

$result=mysql_query("SELECT values FROM 'table' LIMIT 0,1");

Now how do I get the string output? Why is that output as resource and not string?

$result = mysql_query("SELECT values FROM 'table' LIMIT 0,1");
$real_result = mysql_fetch_assoc($result);
json_decode($real_result['values']);