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 (45262,18446,45180,17657,4765,17703,44767,18430,44875,10402,44836,24412,44869,45561,6609,17009,5388,44870,24438,18042,44745,17981,18301,44845,30963,17835,13425,13,4686,44849,17755,19078,18719,17092,44894,44837,31354,37057,30135,44768,44866,17278,13922,44775,45515,3,18652,37267,44858,44711,14402,44669,45421,18981,45177,18650,44687,22509,44739,17771,44765,44863,44868,18286,6782,44855,18648,45042,44851,44884)
Unknown column 'np.person' in 'where clause'