#42S02Table 'goalhub_development.taggings' doesn't exist: SELECT tags.id, tags.name, COUNT(*) AS count FROM tags  INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN goals ON goals.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Goal')  GROUP BY tags.id, tags.name HAVING COUNT(*) > 0