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 (17092,16885,45286,13988,17601,45042,4765,43800,24441,44836,6782,45262,18650,44866,18719,44671,18652,44849,44685,45516,13,45043,44845,44853,44851,44873,31354,3883,17237,45518,17556,18185,14622,45567,44875,45072,39676,17839,44855,17771,18794,24412,45277,18900,30986,18446,18301,17981,4686,44869,44835,44762,28530,44884,24438,44854,32454,18042,6875,45229,44768,19057,14402,17114,44531,9341,34194,18996,44674,45421)
Unknown column 'np.person' in 'where clause'