Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (18981,18237,45515,18446,22509,44531,44867,44669,44674,44861,30963,45180,4686,44875,17278,31354,17835,18794,44745,17556,44868,44711,17092,18286,18688,10402,44854,37267,44853,18894,28530,45277,18900,45567,17601,44835,18301,30135,44865,45043,18652,45177,45518,17839,17756,34194,17703,18172,44866,18648,18427,44685,17904,6862,44873,44855,4765,17237,44640,45286,17771,44767,17009,44671,6875,44775,6609,24441,39676,13425)
Unknown column 'np.person' in 'where clause'