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 (6782,3,17527,45561,44765,44739,13922,17114,16885,44894,44835,44869,44884,17351,36472,17981,18572,18353,44854,44868,45229,13,31354,5259,17009,44687,14402,45421,18719,18446,44768,5410,45262,28313,19078,44870,30986,44837,18996,16935,45515,17835,37057,5388,17556,5993,18894,4765,44669,18279,30963,30135,18237,18185,44640,17092,44863,44848,6609,34194,44855,44845,45051,45072,18652,17839,17657,17492,18430,18650)
Unknown column 'np.person' in 'where clause'