Query: SELECT COUNT(*) AS total_albums FROM photo_category WHERE cat_id = 31 AND a.add_time > 1542495600 AND a.add_time < 1542582000
Error Message: Unknown column 'a.add_time' in 'where clause'
Error Number: 1054