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 (44856,45518,18353,17092,44531,44863,18650,17492,6782,44854,17755,44875,44861,14402,45051,30135,14622,45346,44873,44845,45516,44851,17756,16885,36472,5410,45277,45072,44765,13988,24441,24438,18981,13425,6875,44687,45286,44869,18794,18652,45421,44711,45567,44849,44878,5388,13,44762,45517,44853,17657,43800,44868,13922,44775,18301,44866,45262,44855,44870,17237,18572,4686,44764,18172,18430,17335,5993,44745,17601)
Unknown column 'np.person' in 'where clause'