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 (44858,44739,18688,44849,44878,44768,45346,45042,44762,17703,44775,17335,17904,14402,19057,18427,45277,18286,44845,44854,44869,17835,18650,18353,17755,45518,45051,45180,44866,16885,45516,44861,17351,5259,32454,17527,44711,18430,44689,44765,17771,45567,24438,44853,44867,44669,45517,44687,44863,17981,44685,44848,10402,30986,17756,13922,31354,18172,5993,45515,44745,44835,37267,45262,3,18794,45286,13988,18042,14622)
Unknown column 'np.person' in 'where clause'