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 (17351,6609,17092,44835,18650,44849,18042,24412,17848,24441,18279,17657,4765,8753,44870,44861,44689,45561,44640,44711,31354,18286,45072,18900,44766,44855,44853,37267,30135,44764,44762,17601,17835,44867,17527,9341,44866,13,16885,18172,44687,18430,44884,44669,28530,44765,44869,45051,44863,17981,44674,44775,45042,18719,30986,45516,44868,19078,13988,44848,18353,6862,45229,18794,6875,43800,24438,44878,17009,18301)
Unknown column 'np.person' in 'where clause'