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 (45043,5259,17556,18172,18981,44856,45229,18430,44854,44855,17092,22509,44853,44873,44768,31354,17009,17839,17601,44866,37267,44861,17848,44837,18648,28530,44836,44531,34194,45051,44671,32454,18719,14402,5388,13425,13,16885,45515,18996,43800,45286,17237,18042,18650,17527,45262,19057,44865,5410,39676,44863,18185,44835,36472,16935,17278,6782,45072,44875,17657,45277,17981,6875,14622,44640,18279,44669,45180,18427)
Unknown column 'np.person' in 'where clause'