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 (18353,45051,44836,44858,18794,13,44674,24412,6609,18894,18301,17527,17556,44861,5259,44669,17835,44764,44685,17904,18279,44745,17756,45177,24438,30963,18688,44835,45561,44765,17335,44856,17657,28313,14622,24441,45286,44853,14402,45516,44531,37057,6862,18185,4686,44878,39676,17703,44868,6782,17981,44687,44867,45043,45515,31354,44865,45072,44775,28530,36472,18237,37267,30135,10402,43800,18430,17839,45517,19078)
Unknown column 'np.person' in 'where clause'