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 (45286,44853,44764,44671,44745,32454,44845,44768,17351,44669,45346,17756,18648,45515,44531,14622,43800,44869,17556,6875,45043,17278,18042,17335,44894,24412,17492,17092,16935,17657,24441,18996,4765,18652,17839,18688,17527,18286,5993,44858,17755,45180,17703,44868,44854,17771,18894,45277,17114,18427,18981,44875,45229,44861,44739,17848,18446,6782,44674,5410,45177,37057,6862,44775,18572,45042,44685,44766,44867,24438)
Unknown column 'np.person' in 'where clause'