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 (28313,19057,44861,13988,14622,44851,45561,44869,30963,45042,30135,5259,37267,44856,18719,17335,5410,44739,44669,44745,44853,44685,18042,17114,24438,17601,45517,18446,44674,17771,44711,24412,45072,45043,44767,45567,44775,17904,44863,18652,44884,45262,44866,18648,18996,17981,44867,44835,37057,45229,18430,6875,18794,18572,44836,44531,36472,10402,45346,16885,18353,13425,44689,45180,17009,44640,17657,44837,17703,44878)
Unknown column 'np.person' in 'where clause'