SELECT tg_tag, COUNT(*) as frequency FROM `tag_item` ti INNER JOIN `tag` t ON ti.tagid = t.tagid WHERE CONCAT(ti.plugin, ti.itemid) IN (SELECT CONCAT(plugin, itemid) FROM `tag_item` ti INNER JOIN `tag` t ON ti.tagid = t.tagid WHERE t.tg_tag IN ("hotep\","\"") GROUP BY CONCAT( plugin, itemid ) HAVING COUNT(DISTINCT ti.tagid) = 2 ) AND t.tg_tag NOT IN ("hotep\","\"") GROUP BY tg_tag; You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '\"") GROUP BY CONCAT( plugin, itemid ) ' at line 9array(5) { [0]=> array(6) { ["file"]=> string(51) "/var/www/html/jojo4/plugins/jojo_tags/jojo_tags.php" ["line"]=> int(433) ["function"]=> string(11) "selectQuery" ["class"]=> string(4) "Jojo" ["type"]=> string(2) "::" ["args"]=> array(1) { [0]=> string(701) "SELECT tg_tag, COUNT(*) as frequency FROM `tag_item` ti INNER JOIN `tag` t ON ti.tagid = t.tagid WHERE CONCAT(ti.plugin, ti.itemid) IN (SELECT CONCAT(plugin, itemid) FROM `tag_item` ti INNER JOIN `tag` t ON ti.tagid = t.tagid WHERE t.tg_tag IN ("hotep\","\"") GROUP BY CONCAT( plugin, itemid ) HAVING COUNT(DISTINCT ti.tagid) = 2 ) AND t.tg_tag NOT IN ("hotep\","\"") GROUP BY tg_tag;" } } [1]=> array(6) { ["file"]=> string(51) "/var/www/html/jojo4/plugins/jojo_tags/jojo_tags.php" ["line"]=> int(518) ["function"]=> string(11) "getTagCloud" ["class"]=> string(21) "Jojo_Plugin_Jojo_Tags" ["type"]=> string(2) "::" ["args"]=> array(1) { [0]=> array(2) { [0]=> string(6) "hotep\" [1]=> string(1) """ } } } [2]=> array(6) { ["file"]=> string(54) "/var/www/html/jojo4/plugins/jojo_core/classes/Jojo.php" ["line"]=> int(1751) ["function"]=> string(14) "tagcloudfilter" ["class"]=> string(21) "Jojo_Plugin_Jojo_Tags" ["type"]=> string(2) "::" ["args"]=> array(1) { [0]=> string(100067) " hotep" | Elsewhere by Graham Reid

hotep"

The contents of this page relate to hotep".

Elvis Wade: Professional Lovemaker (1977)

Elvis Wade: Professional Lovemaker (1977)

In an alternate lifetime, singer Wade Cummings could have been Elvis Presley, the man he resembled and came to impersonate. He was born into a poor but musical family in rural Tennessee (his dad a moonshiner) and he was the youngest of nine children. That's the kind of almost mythical backstory we like in our rock stars. As a kid he saw...

Tags related to hotep"

[[tagcloud:"hotep\""]]
" } } [3]=> array(6) { ["file"]=> string(37) "/var/www/html/jojo4/includes/jojo.php" ["line"]=> int(625) ["function"]=> string(11) "applyFilter" ["class"]=> string(4) "Jojo" ["type"]=> string(2) "::" ["args"]=> array(2) { [0]=> string(6) "output" [1]=> string(84674) " hotep" | Elsewhere by Graham Reid

hotep"

The contents of this page relate to hotep".

Elvis Wade: Professional Lovemaker (1977)

Elvis Wade: Professional Lovemaker (1977)

In an alternate lifetime, singer Wade Cummings could have been Elvis Presley, the man he resembled and came to impersonate. He was born into a poor but musical family in rural Tennessee (his dad a moonshiner) and he was the youngest of nine children. That's the kind of almost mythical backstory we like in our rock stars. As a kid he saw...

Tags related to hotep"

[[tagcloud:"hotep\""]]
" } } [4]=> array(4) { ["file"]=> string(37) "/mnt/xvol/www/elsewhere/www/index.php" ["line"]=> int(36) ["args"]=> array(1) { [0]=> string(37) "/var/www/html/jojo4/includes/jojo.php" } ["function"]=> string(12) "require_once" } }