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 (17771,44767,17492,18981,44739,18996,13922,44685,18900,44768,44858,39676,44856,44671,13425,44870,44745,44865,8753,16885,18894,36472,44674,4765,44875,30986,3,17351,17114,13988,45518,44837,45346,37267,45229,44851,45516,18430,30135,44894,44867,34194,32454,18688,17904,44764,17556,18650,18042,14622,18286,44866,24438,22509,17237,44687,18794,44878,45180,17755,45042,44854,44869,17009,31354,18301,44845,44868,19057,18237)
Unknown column 'np.person' in 'where clause'