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 (18572,24411,18279,19057,34194,30135,45518,45286,17092,3,44766,44875,44865,6609,45180,18794,45177,44856,18237,37267,6875,44870,17848,18900,24438,43800,45229,44671,18286,19078,44866,44531,17703,44739,44869,3883,13988,44745,4686,45516,44764,44861,18446,44849,28530,17335,44775,6782,13425,32454,30986,17839,17237,45561,45346,17904,5993,18688,16885,28313,44858,17114,9341,44689,17755,36472,17835,18996,17981,44894)
Unknown column 'np.person' in 'where clause'