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 (44869,18353,18301,45518,44851,45286,13425,22509,17335,44849,44848,30986,14402,44669,44674,5388,44858,16885,17114,44640,18286,45346,44762,3,17657,45043,45567,17278,19057,44765,17981,45517,18652,45177,45229,17092,17601,44863,18237,44873,17703,18446,17835,45042,17771,8753,31354,37057,44865,17848,44861,44836,44853,36472,44894,34194,5410,17755,17527,45277,18650,18279,24441,45421,18430,37267,18719,17009,45515,16935)
Unknown column 'np.person' in 'where clause'