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 (44775,44640,44878,17904,44685,44835,18172,45051,17755,45518,45229,18652,14622,45043,13425,45515,18794,28313,17839,17351,17009,44884,45517,45042,6609,45262,44845,44837,44671,13,18900,18427,18648,9341,18042,17527,44868,17492,44866,17556,8753,17981,44669,44739,18688,17114,5259,18446,37057,18301,6875,32454,44875,17848,44856,44711,45346,44848,44687,44764,45180,34194,17771,4765,43800,18237,37267,14402,31354,44766)
Unknown column 'np.person' in 'where clause'