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 (44863,36472,18237,45517,19057,17848,45072,44836,45516,44868,17114,32454,43800,28313,45177,17556,13988,37267,44861,18648,45262,4686,3,45421,17492,16935,13,44669,45229,44870,45567,17981,6609,6782,4765,18650,44739,44894,18301,44531,44685,44866,44671,18688,45051,13425,17657,45346,30963,37057,44878,45042,17335,44854,44856,31354,45286,18353,18996,44869,45515,44835,45180,44766,44849,17278,44689,19078,45518,18652)
Unknown column 'np.person' in 'where clause'