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,44640,44837,44868,44739,13988,44884,17092,18301,44861,18172,17703,3,44855,18427,30135,10402,18446,45051,17835,13,37267,44766,44849,17114,6609,44765,18648,13425,45180,17009,44866,44711,44853,44851,18185,45042,45229,17771,18652,44865,44875,44531,45072,28313,44687,44845,13922,44674,44854,44873,32454,44669,18353,43800,45567,44835,24412,45346,24411,19057,18430,17657,16885,5388,36472,37057,44836,30986,17848)
Unknown column 'np.person' in 'where clause'