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 (44674,45177,32454,18427,17114,6862,5388,44849,14622,44711,44894,18042,13,44869,44866,39676,44764,45346,13425,18353,17756,18652,17527,24412,5410,44875,44863,44878,44765,44856,5993,14402,30135,44865,5259,18981,18650,44855,44861,44739,18286,44768,17351,6782,44858,18237,17092,18185,17278,45042,19078,16885,18894,34194,45567,45421,13988,45516,44873,17835,4765,17771,18572,44845,30963,18446,44762,45561,17904,17237)
Unknown column 'np.person' in 'where clause'