Invalid query: SELECT sum(cnt) as cnt, sum(hits) as hits, sum(votes) as votes FROM ( SELECT count(*) as cnt, sum(a.hits) as hits, sum(a.rating_count) as votes FROM jos_content as a INNER JOIN jos_categories cc ON = a.catid INNER JOIN jos_sections ss ON = a.sectionid WHERE a.state = 1 and a.created_by = 226 AND a.sectionid IN(5, 8, 9, 10, 13, 14, 15, 16, 20, 21, 24, 25) UNION ALL SELECT count(*) as cnt, sum(p.imgcounter) as hits, sum(p.imgvotes) as votes FROM jos_joomgallery as p INNER JOIN jos_joomgallery_catg cc ON cc.cid = p.catid WHERE p.published=1 and p.approved=1 and p.owner = 226) as z
Error:Access denied for user 'svetlose'@'localhost' (using password: NO)