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 (5388,44685,18572,44863,44856,37267,6782,18996,5410,32454,17527,18688,39676,24412,13425,18185,45177,44766,44739,17981,44764,45518,37057,45567,18648,13988,45346,43800,17771,44868,18286,44873,45516,44689,44835,16885,17009,4765,45229,18719,44878,17601,45517,3,3883,17657,44765,24438,44851,44870,19078,5259,45042,18430,14402,17756,44531,6862,13922,18794,45072,8753,18353,17492,18301,44671,28313,44884,44867,44858)
Unknown column 'np.person' in 'where clause'