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 (45286,17527,17657,39676,45043,4686,17278,44858,45277,17601,17904,44884,45561,44775,17009,44848,45229,34194,13988,44875,45180,14402,44856,44835,44870,44711,18894,17335,18719,18301,17237,44878,44851,6875,45042,18652,17839,16935,36472,28530,44669,44869,18572,45262,44674,44861,43800,45517,45051,44894,30135,44863,44640,44866,45177,44855,17092,17114,18042,13922,18446,6782,6609,44685,19078,44766,44868,30963,22509,44689)
Unknown column 'np.person' in 'where clause'