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 (5993,14402,18185,17755,22509,31354,24411,13425,18719,45517,18996,17092,28313,37057,44711,44866,44669,28530,45177,44687,18794,44861,36472,44768,44878,17657,5410,6609,30963,30135,18430,17703,44855,44674,44836,30986,44868,45421,17009,18652,45286,24438,45346,17556,17835,44894,17278,19078,44837,44765,45561,17839,13988,17848,45567,19057,44767,17237,16935,6782,18172,45262,24441,18042,44849,17335,44858,18353,43800,45043)
Unknown column 'np.person' in 'where clause'