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 (18996,3883,18648,16885,24412,45516,24411,17839,45346,44861,44674,45262,45286,45043,44849,32454,44745,45421,6782,16935,44866,17904,17527,44640,18353,17756,45517,19057,28530,45180,18042,14402,44845,17351,18446,17755,17835,44739,13,45561,6875,44765,17556,44884,44766,44835,44856,44764,18900,44868,18301,4686,17335,44848,14622,45567,18185,24438,37267,18794,44685,3,8753,45042,45515,44669,17657,45051,18427,17703)
Unknown column 'np.person' in 'where clause'