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 (3,32454,5993,44873,44767,18996,44851,44775,44765,18719,18172,45051,30135,9341,44856,18353,45277,17335,17092,44867,18430,17009,18301,18981,43800,18279,44835,18794,17492,44669,45561,17703,17981,44868,44884,18648,24438,44878,45042,28530,44764,44870,45518,44671,13,17839,18185,6782,17527,44858,13988,18446,45072,18427,14402,44711,22509,44894,44836,45180,45516,18894,44855,18042,44531,24412,44745,44848,44837,45286)
Unknown column 'np.person' in 'where clause'