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 (17756,45515,17009,45277,8753,18353,18981,18185,24411,17527,45346,44870,44745,39676,30986,18172,44884,44640,44671,17492,44836,18648,18794,14402,30135,18237,44837,45421,17237,13922,44851,45051,30963,43800,44531,44863,44849,37267,44775,44845,31354,18719,18430,17556,5993,17848,18286,44674,44669,18900,16885,44894,6862,45567,4765,3,16935,32454,6875,45180,45043,45042,44767,18688,44853,6609,45517,18572,24441,18996)
Unknown column 'np.person' in 'where clause'