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 (45517,18652,8753,9341,45043,18719,18286,44531,44866,5993,17756,31354,44765,18894,17835,44837,37267,44869,18572,18237,18430,44858,45515,10402,44640,18648,13425,44745,19078,45516,44875,44687,6609,17839,34194,30986,36472,17492,6862,17009,28313,44873,44894,44836,18446,14622,43800,17335,45051,16935,18042,3,44870,45421,45042,18981,44711,24411,45346,44674,44884,17237,45262,6875,5388,44835,44762,44767,17527,44861)
Unknown column 'np.person' in 'where clause'