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 (17278,44837,16885,17237,17492,44674,44854,44894,17756,18981,44845,24441,44835,18237,24438,44768,18430,44853,30986,17092,44858,17703,44869,44531,44884,18427,44764,5388,44767,44848,45516,18650,44745,18900,18172,13922,17556,39676,44739,24411,45421,43800,44849,19078,44867,17848,6862,44775,30135,17657,9341,45286,31354,44861,17527,45518,45346,10402,45042,45515,6609,18996,44669,18286,37057,18572,44865,32454,3,17114)
Unknown column 'np.person' in 'where clause'