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 (17237,6609,17556,39676,17335,44764,37057,45277,6782,17771,17009,18353,17981,44837,44845,44762,24441,18996,17848,44767,44745,13988,18286,18648,44861,28530,17092,30963,18719,44766,3,5993,44711,4765,44869,44866,44856,45042,18185,24438,17703,44878,45567,45516,14622,44865,43800,10402,17351,44685,44863,18172,44531,24412,22509,17601,18794,45421,17835,45517,5410,45229,44775,44640,16935,44669,17657,18446,3883,17492)
Unknown column 'np.person' in 'where clause'