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 (44855,45518,44711,24441,44845,17092,18794,44764,17756,44767,18719,18446,18981,30963,17771,17835,44870,3883,44531,44873,18430,44858,6862,30986,17657,44867,44685,18688,34194,44745,44766,44861,45072,14622,17335,44640,10402,18427,17556,18172,45286,45277,44866,18185,9341,44835,19057,44851,13,4765,18572,45177,44768,17755,18042,44878,44869,37057,44884,17527,44863,44674,44687,17904,17351,45229,44849,5410,44853,44765)
Unknown column 'np.person' in 'where clause'