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 (18172,44867,44853,3883,44711,22509,45229,14622,19057,44775,18794,45346,13425,44865,17755,18900,44894,44884,44835,17492,44766,24411,44868,13922,17092,17657,44765,18652,5993,45072,32454,44836,45518,17527,44764,17835,44531,5410,44849,18353,45286,39676,44671,18446,43800,14402,44837,17981,34194,18427,6609,17756,45262,45516,18286,45042,18042,18650,44674,24412,44855,18185,45051,18719,24438,45517,44858,6862,17335,10402)
Unknown column 'np.person' in 'where clause'