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 (18185,45262,19057,45561,44894,18430,45286,44685,5259,45346,17756,17771,19078,18894,45051,17981,44689,18301,44856,44884,44711,45277,45177,17703,17335,45567,17237,30135,45421,14402,44870,18996,18572,44775,45516,18353,5388,16885,13988,44878,5993,18900,18688,44849,44867,45518,44767,14622,43800,44866,30963,4765,44640,32454,17556,24412,6609,44739,18042,44531,17527,18286,17755,44854,44837,17657,17492,6875,18794,44848)
Unknown column 'np.person' in 'where clause'