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 (17657,13425,17092,4765,6782,44764,17771,44685,17756,44669,17839,45229,22509,4686,18688,44869,18446,44861,36472,45346,17335,17904,18996,9341,44868,14402,44745,45516,44848,17351,45421,17601,18427,24441,45286,44689,44674,18286,44640,44853,45567,17556,18430,45180,17755,44739,18981,19057,18237,6862,17848,17237,44878,18794,44865,3,44768,45262,45561,17278,13922,19078,44767,14622,44851,44856,37057,28313,44671,5993)
Unknown column 'np.person' in 'where clause'