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 (17601,44854,13425,43800,17092,24441,17009,18900,45229,18172,45346,44674,45517,44867,13,16885,45421,22509,18286,44762,44856,45072,17657,45286,44863,45051,45561,4686,6609,19057,18446,13922,44767,45042,17756,44868,44849,17114,18894,13988,18353,17755,44765,45262,44836,37057,44884,30135,37267,19078,18652,18996,44669,18427,24411,17981,34194,18301,45180,17492,44835,6862,17351,5259,17839,18648,24438,18719,9341,44766)
Unknown column 'np.person' in 'where clause'