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,6609,44849,44858,19078,45516,45042,45517,18042,17981,45421,18650,8753,17848,45051,30135,44836,5259,44711,44739,18894,44845,44768,17009,44867,44848,44870,44669,17771,18185,18648,14402,45262,13,44767,44837,18719,4686,44671,30963,18688,44854,37267,9341,44873,18996,17556,5410,17092,17755,18652,44855,37057,24438,13988,44878,44685,44866,44853,3883,44875,44894,17527,18301,44762,44640,13425,24411,45518,45561)
Unknown column 'np.person' in 'where clause'