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 (45346,44766,13922,44687,4765,24411,14402,16935,45051,18237,19057,45177,37267,18572,18650,45286,34194,44869,45072,45515,17904,22509,18042,6609,17703,44765,44856,44685,45180,17527,18900,18648,45567,4686,44863,45517,45277,9341,39676,18353,17335,36472,18279,13988,44866,44762,30135,44837,17755,45421,44845,44875,18430,19078,37057,44865,17756,44884,17556,44674,17601,13,3883,17835,3,44855,18301,44739,45262,17351)
Unknown column 'np.person' in 'where clause'