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 (17756,44866,31354,18353,17771,18572,44863,13425,14622,18650,24441,30135,45421,44762,45517,44867,44766,44851,44848,18427,44853,44640,17092,18237,5410,18652,4686,24411,45051,45180,45043,18172,34194,44768,17839,44835,17278,44855,4765,22509,5259,44873,45516,45518,18430,24438,45277,16935,44837,13,44854,18719,44878,13922,18996,28313,32454,30986,44669,37267,18301,30963,44884,17237,6862,5993,44745,17527,18446,19078)
Unknown column 'np.person' in 'where clause'