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 (34194,44674,45421,5259,45042,17839,17114,44878,44764,44869,44845,45561,44873,44671,17981,45517,44851,44775,18427,44849,44870,17492,44767,22509,17335,16935,45567,14402,17904,45518,19057,18572,44685,45180,18650,44711,45346,44856,17657,44837,24411,45043,44853,18353,18996,44861,44884,18042,9341,44875,16885,13425,13988,17278,44835,3883,44689,18652,44865,44687,44858,18900,39676,17835,45051,32454,4765,44768,5993,6782)
Unknown column 'np.person' in 'where clause'