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 (6875,17755,9341,44851,17848,44873,45262,44745,45517,36472,3883,44669,10402,44685,18652,45515,17771,45518,4686,45229,18794,14622,30986,3,14402,44856,44767,17278,39676,44863,45072,18042,18572,6609,17981,17756,18430,44764,18301,6862,44849,44858,44875,17835,44837,5410,44884,19057,44867,17904,45421,5388,44835,44861,44766,17657,17351,44845,19078,18650,18446,44836,6782,31354,18279,44848,17335,4765,16885,45561)
Unknown column 'np.person' in 'where clause'