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 (17335,18794,45286,45518,44685,6862,44739,17601,18286,45277,18430,44868,44853,45177,45567,18301,36472,44711,13,44845,45561,18981,17839,5410,24412,14622,31354,17492,14402,44858,24411,44894,17527,5993,18652,17114,45346,17755,16885,45517,18894,4765,44765,34194,45051,18650,44867,17771,30963,18719,17981,44835,18900,44865,44870,43800,44745,18572,17009,45042,44766,3,18446,44863,44878,44531,17092,45180,45515,44687)
Unknown column 'np.person' in 'where clause'