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 (4765,32454,44855,18237,8753,6782,18172,45286,44531,45262,44849,45346,28313,44775,18688,44835,17657,45072,18279,44845,18794,44640,18286,6609,44851,45042,30986,44875,18719,4686,17835,30135,44848,16885,45051,5259,34194,18900,39676,44854,44866,17335,44865,17237,17904,18430,13,19078,45277,45043,45561,18353,24438,19057,17839,43800,44671,44764,17556,9341,44884,3883,45516,6875,24441,44868,45567,44867,44768,14622)
Unknown column 'np.person' in 'where clause'