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 (44884,45421,17981,44849,45177,44861,44845,18794,44764,18172,37267,17527,28313,44853,18185,17492,17556,10402,18279,44685,45515,17657,17839,19057,45229,44766,44851,45042,44878,44836,44689,44674,17114,6875,44856,30986,24438,44768,18572,5388,31354,45346,4686,18353,44687,17756,13425,45567,44875,16885,44867,45072,18286,44671,36472,44894,44837,16935,17009,18648,18894,17835,44848,44711,45517,44868,44531,17601,18652,18430)
Unknown column 'np.person' in 'where clause'