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 (44861,6875,44873,44849,19057,44739,17527,17335,44845,18794,18427,44866,44764,24412,45515,16885,4765,18279,44765,45277,5259,44878,17981,17756,17755,39676,18688,18650,44767,18237,17351,44875,18719,24441,45518,44768,44531,45262,44868,17703,44837,45177,18981,14622,28530,44867,17904,44671,44775,14402,17657,18042,44766,17848,18996,5410,44745,18900,31354,18430,3883,17492,17601,24411,18572,44869,18652,18286,44640,44762)
Unknown column 'np.person' in 'where clause'