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 (17703,45286,45229,45262,45421,45177,6782,30986,17092,45043,19057,44669,34194,18572,44851,45042,4686,17492,44868,5388,6862,44764,10402,13,44531,13988,36472,17981,19078,44685,18430,24411,44775,17601,44711,17009,44766,9341,17771,24412,5259,18427,18894,16885,17556,45516,44870,44865,44863,45567,43800,17237,17527,18237,44858,44640,45561,17755,18794,45346,44875,13922,14402,5410,44853,44855,44878,17839,6875,44739)
Unknown column 'np.person' in 'where clause'