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 (17278,45043,37267,3,18286,44762,44531,45346,3883,44861,18650,18652,44640,45421,6875,17839,18430,22509,45180,18301,24438,45177,4686,45515,28313,28530,18648,18894,44873,44845,17835,44849,18996,17657,45517,17981,17351,18279,18794,44858,5993,44884,45516,17904,24411,44869,17756,6609,43800,18981,44765,18353,44768,18446,16885,32454,44856,44766,31354,45567,14622,44689,45072,44878,44764,18042,17771,17755,37057,45277)
Unknown column 'np.person' in 'where clause'