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 (3,14402,45051,32454,18353,17527,4765,17114,18648,45072,13922,17092,44884,45262,18172,17771,6875,44856,45421,17904,44674,18237,37267,18996,44687,17335,18279,18719,44745,45346,44739,17556,44669,17351,44849,17839,16885,44873,10402,44861,9341,5259,44766,17755,17835,44711,45517,24438,18042,44863,5993,17278,22509,37057,45516,44835,17981,17703,18650,44875,18572,19057,13,18301,44762,44845,16935,18286,45277,17756)
Unknown column 'np.person' in 'where clause'