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 (34194,17981,45567,45051,3883,4765,16935,17839,17492,6609,44863,28313,19078,18794,44837,18650,17755,14622,17657,17771,44875,17237,44861,44687,3,18688,44671,24412,44868,18648,8753,44764,45517,45516,45518,44851,44767,30986,18286,18981,45177,13425,6875,10402,37057,17009,44669,4686,44873,44884,17114,36472,28530,14402,17756,44836,44854,45072,24441,13988,45180,44878,44689,44856,45262,17848,6862,45043,18301,44894)
Unknown column 'np.person' in 'where clause'