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 (17848,37267,36472,5410,17771,44884,17278,18237,4686,13922,45346,4765,45567,18648,17904,17351,44837,44869,44863,24412,32454,16885,45286,18427,44858,17601,44674,28313,45177,16935,45518,13988,18996,17755,44856,45516,45517,44854,44685,22509,44867,18301,13,44836,44853,13425,17009,18894,18652,9341,17839,44870,45421,18430,44845,19078,18572,44775,44640,24411,44868,44764,5388,6609,45229,44855,5993,17335,3,18981)
Unknown column 'np.person' in 'where clause'