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 (17527,17601,28313,17839,45518,44894,17556,45262,30135,31354,30963,36472,5259,45229,45180,17904,44835,18042,17848,13922,37267,18185,18286,19078,44768,44836,37057,44855,6782,24412,44531,17771,44867,18427,39676,17351,5388,17756,5410,3,44766,45072,22509,44854,45421,45515,44856,44851,44685,32454,18794,43800,8753,18650,18900,34194,17657,44848,13425,44869,45561,14402,18719,30986,44863,44837,44853,44640,45277,6862)
Unknown column 'np.person' in 'where clause'