Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (13,17835,17703,44671,44851,45346,45043,6875,18894,44674,6862,45421,10402,44848,45051,5388,44873,45518,44768,14402,17601,45262,18446,44866,13988,17278,44711,45072,45517,18981,44854,44739,18237,13425,4765,18648,30135,5993,14622,17756,44835,24412,44849,44775,18279,17237,4686,17771,45561,36472,18286,44765,45180,18042,24438,45286,28530,18172,44685,18794,45042,5410,30963,44867,13922,37267,44853,6609,8753,17351)
Unknown column 'np.person' in 'where clause'