i am getting this error as i was trying free classified script on http://www.tutorialized.com/tutorial/Create-Classifieds-Software-In-1-Hour/60523
this is the code and line 47
enter code here
function list_count()
{
$q="SELECT COUNT(tA.id) as classifieds, tC.name as name, tC.id as id
FROM categories as tC LEFT JOIN classifieds as tA ON tA.category_id=tC.id
ORDER BY tC.name";
$result=mysql_query($q);
$cats=array();
line 47-> while($cat=mysql_fetch_array($result)) $cats[]=$cat;
return $cats;
}