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 (18996,45051,44875,45518,44866,44845,17756,18652,44689,44674,28530,18042,44739,17092,44863,44685,44855,8753,17771,16935,18981,45346,45567,44870,31354,44835,44865,44848,45277,18446,18301,18286,36472,44894,44853,44858,18172,45177,18719,30135,17835,39676,13425,17009,24438,18648,44687,44767,17351,44869,44856,17278,10402,18427,17114,24441,44766,16885,18279,44837,18900,17755,6875,44745,45515,13922,44861,5388,17981,44775)
Unknown column 'np.person' in 'where clause'