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 (45180,18185,44878,6862,5259,16935,37057,44640,44869,45072,17835,44768,18688,13425,44775,18572,45277,45518,17657,45043,18237,5388,45042,17092,44685,18446,17351,17492,44849,24441,17601,44766,44870,44856,17114,18650,18794,24411,17755,17703,19057,44894,44863,44868,18981,17009,17527,44858,37267,45567,3,45421,30135,17756,3883,14622,17839,45517,44854,44851,30986,13922,18652,17556,44689,5410,44764,24412,18279,18430)
Unknown column 'np.person' in 'where clause'