Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rank from ecards where tags like '%rank%' and category = '' at line 1
select count(*) as rank from ecards where tags like '%rank%' and category = '58' OR tags like '%rank%' and category like '%,58%' OR tags like '%rank%' and category like '58,%'
Filename: /var/www/html/ecards.co.uk/app/models/category_m.php
Line Number: 95