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 (44671,16885,17601,18688,8753,17237,44851,17771,44766,17755,44837,28313,44868,10402,44884,13988,13425,18652,17756,19078,44849,44762,18648,45561,44861,18301,18237,44866,30135,5259,5993,6862,6782,45567,17839,18172,28530,44687,45042,37057,44875,18430,24412,44711,18894,17351,45421,45277,17492,44863,44836,44689,17527,45229,45518,44674,18981,44685,6609,39676,18042,18427,14402,17657,44767,24438,17556,45515,19057,17835)
Unknown column 'np.person' in 'where clause'