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 (6782,44775,18719,45286,36472,5259,17904,4765,18900,17755,44711,17657,45051,17556,18286,18353,13425,9341,44764,44845,37057,44870,18427,44856,45043,13988,44739,24412,44863,6875,44868,28530,18794,18430,45518,18301,18172,45567,13,6862,44762,5993,18648,18446,43800,17009,45346,8753,44674,44766,17981,5410,17527,24441,19078,44689,5388,18894,18650,44640,17771,17092,44884,44849,17756,44853,45515,44865,44869,18996)
Unknown column 'np.person' in 'where clause'