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 (44867,44669,8753,45516,9341,17601,45042,18652,18279,44765,45518,37267,44739,16885,45051,45515,44685,18894,6875,5388,14622,44868,22509,44671,24438,17835,17657,31354,14402,17114,28530,45561,18572,17756,44845,17839,18237,32454,18981,4765,18172,34194,13425,6782,44766,17335,45567,18427,44866,44853,44687,44863,36472,44674,19078,44854,45346,44848,18185,5410,5259,17771,3883,44768,44851,18042,17351,37057,18996,44875)
Unknown column 'np.person' in 'where clause'