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 (44745,45517,14402,17601,44689,44866,44762,45518,45177,5259,5388,17756,18719,44851,39676,36472,17556,24411,4686,17703,18446,44764,45421,14622,44640,44894,44836,17527,43800,45043,17335,19078,18286,17092,17492,28530,13,13425,24438,45042,17981,44875,10402,18650,44674,44671,5993,44861,18353,44837,18301,18688,37057,18648,17839,17771,17114,44865,17657,18981,45180,18185,16885,18042,18427,44869,44849,17009,44766,16935)
Unknown column 'np.person' in 'where clause'