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 (44689,36472,45517,18648,44775,31354,39676,44861,17756,45051,44764,18652,6782,44868,19078,44640,45561,17703,45346,13425,45072,17351,44835,44867,18237,5410,44671,44865,44845,6609,10402,3,34194,17755,18981,18430,13,17839,17114,44762,3883,44674,8753,44858,17904,28313,17092,17335,45518,44873,44884,6862,32454,44765,17492,17009,18185,18650,6875,18996,45042,18894,44685,44863,45262,24441,44739,44687,17527,30986)
Unknown column 'np.person' in 'where clause'