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 (45043,3883,13,14622,31354,44685,44863,44775,18446,17839,19057,45567,18794,44687,44768,24412,10402,44640,18185,44765,18719,45277,44861,24411,45286,17556,17904,44855,14402,6609,34194,45177,18648,44848,19078,5410,13988,17657,18042,45517,17981,44739,44853,44851,39676,44858,17755,30135,9341,44669,18301,6875,17601,44869,17237,17848,45421,5993,45229,6862,18430,44671,18572,18688,5259,18427,45042,36472,18286,44878)
Unknown column 'np.person' in 'where clause'