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 (16885,45518,18279,13425,45421,18237,44870,6875,44836,24438,8753,24411,44689,17237,45346,43800,45516,44687,36472,45043,45177,3883,45515,18652,18650,18719,30986,44671,44849,18172,28530,31354,44858,45042,44878,45051,44848,44765,17703,45072,44775,18894,45286,6862,14402,17527,44851,39676,44762,28313,34194,13922,17848,44854,17756,44866,4765,44685,44768,17601,18981,32454,44711,5410,18572,17278,17556,44745,44767,18286)
Unknown column 'np.person' in 'where clause'