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 (5993,5410,4686,44861,14622,17756,44765,44674,44855,10402,19057,17981,18430,17556,45516,36472,17237,44767,45043,18237,45051,44865,30135,18900,34194,18996,43800,17114,45177,24441,45042,18286,18042,24411,44863,44851,14402,17492,44762,19078,4765,18172,17278,17703,16935,30986,18652,39676,44640,22509,17657,45229,16885,31354,45517,44878,8753,17755,44868,28530,13,44856,45515,24438,32454,45567,3,18794,17601,18185)
Unknown column 'np.person' in 'where clause'