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 (37057,17114,3883,17492,44845,44836,18794,18237,44765,39676,16935,30986,18719,44767,14622,5410,18894,19078,17703,4765,44856,45262,18996,18172,45043,44861,18286,17835,44745,18430,44854,17351,17771,31354,44869,18688,44768,17848,32454,45286,18900,44884,6862,45277,18185,34194,18279,44870,17237,45177,24412,17756,9341,36472,44866,44855,17278,44867,44837,18301,44878,13922,17839,18650,37267,18042,6875,4686,18446,22509)
Unknown column 'np.person' in 'where clause'