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 (18894,34194,16935,4686,18648,45516,44764,18237,17981,44837,19078,44669,45518,18652,43800,44854,44869,44851,44848,45561,3883,45051,45177,13988,44767,44878,32454,17492,17771,44836,37267,44868,24441,18794,6782,17756,9341,44739,18719,13922,44853,14622,6875,17527,17904,44765,44856,18301,5388,44858,18900,5993,45515,45043,18185,14402,45567,18172,44766,17009,24412,44775,17703,22509,45072,18430,44685,44849,45277,36472)
Unknown column 'np.person' in 'where clause'