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 (44531,14402,45517,44869,44835,44855,44764,44875,44767,44878,44865,18900,45346,17835,17114,44739,37267,45561,44671,6609,45180,45051,45515,44765,45286,44853,44894,44856,31354,18650,3,17755,6875,44848,17335,45421,44849,19078,5993,44685,17904,18301,16885,17237,17657,45262,44861,4686,18427,30986,14622,18279,22509,30135,18042,18237,17009,17527,43800,44868,17278,18652,44873,18430,18572,24438,44866,44863,24441,45516)
Unknown column 'np.person' in 'where clause'