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 (16885,44674,44856,18794,44875,18996,18430,17492,30135,44835,17703,17278,28313,17114,44845,10402,45229,17527,45421,24438,45517,44867,45043,19057,28530,6862,44849,44884,44711,44685,45277,13922,18688,22509,34194,44855,4765,16935,18719,44873,18648,30963,37267,18650,44866,3883,17556,17981,6782,18900,14622,18042,18446,44858,44640,45516,45561,44764,31354,44762,18185,45567,45262,44853,9341,8753,43800,13425,24412,17771)
Unknown column 'np.person' in 'where clause'