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 (17657,37057,44711,18042,39676,14622,4765,18286,9341,44865,24411,45421,30135,18237,44870,36472,5388,45567,44875,45518,44849,45277,18648,4686,17904,24441,17335,44739,44837,18572,17848,13922,44765,18446,44867,45042,8753,17835,44775,44671,45561,32454,13425,45051,44669,17601,14402,44851,17756,44835,24412,45286,18185,18719,17839,45515,17114,17981,44674,44853,18279,37267,17755,44884,34194,5410,18996,18794,44531,24438)
Unknown column 'np.person' in 'where clause'