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 (37057,44848,44858,44674,17351,44894,18427,18430,18286,44854,30135,44640,45042,44869,18794,18996,36472,17755,30963,18894,17335,45229,45177,18900,44855,18353,19057,45517,45051,44884,17657,8753,39676,17756,44775,44767,17904,44845,45072,44671,44765,18301,13988,45561,44745,45262,44837,24411,44849,17835,5388,45277,44878,9341,45043,44764,5993,18981,44870,44875,44687,17527,43800,30986,44867,18719,19078,44868,44766,17278)
Unknown column 'np.person' in 'where clause'