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 (3883,44674,44685,3,16885,17114,18185,10402,44745,32454,43800,17981,37267,13425,28313,44873,24411,5993,18301,44765,44767,17771,18279,44884,30986,18996,45043,31354,44861,13922,45229,17527,5410,44640,44855,37057,18894,44835,14622,45421,45286,44775,18981,18900,44711,17904,17492,17835,13,45517,9341,44739,18648,6875,36472,45567,44531,45346,17335,44837,19057,18286,44870,45516,45042,45177,17278,39676,18427,44863)
Unknown column 'np.person' in 'where clause'