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 (45515,18353,6609,37057,45180,44867,17904,24411,18572,18794,44669,17492,17335,44836,44855,45277,18894,45421,44768,17755,44531,44858,44674,14622,18172,13922,5410,18446,17092,17114,5259,44764,18652,44861,45567,18427,44884,44866,44854,44848,44640,17601,32454,44878,18279,10402,44762,44849,13,14402,3,24441,44869,44851,4765,45051,44845,44739,18237,18650,28313,44835,44875,18648,3883,44766,44837,30135,44671,44689)
Unknown column 'np.person' in 'where clause'