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 (17657,14622,44671,18172,44689,34194,45177,18648,44878,44640,45180,19057,18301,43800,17278,14402,44764,6862,4686,18981,5388,44765,32454,8753,18572,17771,17848,44531,18286,6875,28313,17335,44711,44775,45051,28530,13922,6782,44669,44674,18652,45567,44837,37267,5993,44848,24411,44766,45421,18042,36472,44767,24441,17114,44870,45286,17556,6609,44861,45262,44884,45229,44875,44685,17527,13425,17756,16885,24438,18900)
Unknown column 'np.person' in 'where clause'