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 (16935,17114,44849,44745,18427,44711,44865,16885,44851,3883,3,17703,6875,44878,44685,44875,18996,18172,45421,44640,13988,45262,45042,18652,17335,44869,24412,18688,31354,24411,18279,18301,32454,4686,44765,45277,44856,44764,44531,17755,44858,18446,45515,44867,44835,18286,39676,14622,18794,5410,44669,44873,24441,45517,6862,17527,28530,44766,37057,10402,4765,5259,18572,44775,18648,44845,44671,45518,44863,45346)
Unknown column 'np.person' in 'where clause'