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 (13922,17237,18185,4765,45229,43800,18981,44739,45180,30963,45346,45051,44875,17904,24412,17756,45177,44873,22509,44884,44848,10402,44854,24438,14402,18446,44764,6782,37057,18301,9341,18572,17351,17839,18430,17278,44845,18650,18286,17771,18894,44853,44775,44861,18719,18237,16885,17114,18648,45567,17092,19078,5259,3,44867,17835,44640,44837,45561,44762,39676,17335,13988,44851,45277,44858,6609,6875,17703,44689)
Unknown column 'np.person' in 'where clause'