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 (44863,18353,44640,18650,45421,17351,34194,45517,17492,44837,28313,18794,45051,17657,18172,18427,17601,44855,18900,44764,44687,6875,44669,18719,18446,44869,45177,18981,13922,44867,44854,45072,30963,45518,8753,18652,13425,43800,10402,45042,17848,44671,18301,36472,45346,44685,17114,44873,45515,17237,4686,44689,44851,45262,14402,37057,18430,44870,44866,18286,44674,17092,44894,13,44739,18648,44765,45277,13988,28530)
Unknown column 'np.person' in 'where clause'