$query = "SELECT title,id,hits ".
"FROM ".$db->nameQuote('#__content')." WHERE state" . "=" . $db-
>Quote('1') . " ORDER BY hits desc LIMIT 0,".$count.";";
but why i cant use sqlQuery to limit the results?
> --
> You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
> To post to this group, send an email to joomla-de...@googlegroups.com.
> To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
>
>
Also, throwing in a:
echo $db->getQuery();
never hurts.
Regards,
Andrew Eddie
http://learn.theartofjoomla.com - training videos for Joomla 1.6 developers