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 (44764,44856,45517,44687,3883,45346,19057,18042,9341,18981,43800,17981,30135,44875,18286,44869,18353,18430,45042,24412,32454,44836,44765,6875,18279,44853,44851,16935,44837,8753,18794,28313,17601,44884,17771,44669,24411,18648,45072,18652,31354,17009,44878,6609,28530,37267,17335,24438,5410,44868,44745,18650,4686,45177,30963,34194,14622,18900,45516,17904,5259,44835,44873,18572,44854,18688,17351,44739,44671,17657)
Unknown column 'np.person' in 'where clause'