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 (5388,18688,18894,9341,18185,44837,32454,28530,17278,18794,18172,44870,18237,44894,34194,6782,45180,44858,45229,45051,17556,45516,24411,44851,17981,6862,3,44671,45177,18981,19078,19057,17703,44768,18430,5410,18900,17904,17835,6609,44848,14622,39676,44687,18301,37267,17848,18572,44767,16885,13988,14402,18279,44766,13425,44745,31354,18042,44765,44856,45262,44669,17335,44866,44739,17756,44640,18286,45277,44878)
Unknown column 'np.person' in 'where clause'