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 (44775,18185,18279,13988,44845,44689,32454,44739,17981,44853,44863,18996,18427,45515,44711,5388,44851,44873,17092,24438,6609,44868,44867,44875,17835,44884,45180,4765,45051,36472,18353,44856,45518,44869,24441,19078,44674,44745,18172,16935,18894,44849,17556,45561,44837,18446,5993,45262,45229,17601,45516,18719,44767,6782,8753,44671,18981,14402,44835,45177,45517,17492,45277,17114,43800,30986,44865,22509,16885,45042)
Unknown column 'np.person' in 'where clause'