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 (3,24411,24412,14622,17527,18042,44855,44856,39676,44711,6782,17556,6875,44867,44868,45286,22509,37267,44866,17771,45516,44845,18446,17601,17237,44745,18430,18650,17756,44869,28530,45517,45561,18572,44531,44669,19078,9341,18353,45515,45277,18301,45042,17278,36472,17092,18900,6609,4686,44835,16885,32454,44768,17904,44766,5410,44849,18172,17703,18286,45346,5388,34194,4765,17755,45051,45180,5993,44848,18996)
Unknown column 'np.person' in 'where clause'