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 (45286,24412,44848,45072,44671,44861,44687,45346,31354,17703,18286,44867,18185,17114,43800,9341,22509,44711,44851,6875,18794,16935,45421,45517,45515,44775,17527,44845,44856,18996,44866,44869,45262,13988,44855,45051,44878,44685,32454,37057,44835,28313,17009,45567,18446,45277,17237,18427,18279,34194,44739,44765,44836,17839,44875,44849,39676,5993,18719,17981,16885,5410,18900,45042,14402,17556,17278,17904,17351,44837)
Unknown column 'np.person' in 'where clause'