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 (17527,44766,18650,44856,45286,44849,44851,44861,17556,6782,44837,17703,19057,18301,18427,44689,17092,34194,17492,24438,18572,17009,3,8753,44674,13922,4686,30135,17848,18237,9341,18353,5259,3883,44855,18286,44836,13,28530,44835,16935,45072,19078,39676,17835,45567,44711,45229,18648,44878,43800,18042,44867,10402,44868,44848,14402,24412,37267,17335,6862,18719,44739,44669,17278,17237,17657,44685,17904,44866)
Unknown column 'np.person' in 'where clause'