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 (17114,44875,18042,44835,14402,17601,45229,18279,45518,17755,16935,17237,44836,5259,37057,18572,24411,18894,5993,17904,13988,18900,9341,28313,45043,45567,16885,18286,18688,18301,44640,45277,30963,13,45286,18427,3883,44762,19057,5410,18650,44884,44775,3,30986,18237,18996,44531,44674,10402,44766,44711,17556,17756,44765,18446,44866,18719,44837,13425,44851,24412,44870,45262,8753,44861,44671,44855,44878,44869)
Unknown column 'np.person' in 'where clause'