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 (44868,3,45229,19078,18652,17771,18996,32454,5993,44869,17114,44849,44855,4765,45515,44764,44671,45072,5410,45567,36472,44531,45286,44739,30986,44894,13425,45516,44858,44878,6609,16885,44685,17755,44762,28313,18572,24441,14622,44884,44674,14402,30963,45517,44856,13988,44867,17601,18894,18719,18650,18427,6862,44837,45346,44767,17703,17756,22509,17278,18430,44835,18237,45043,44711,44669,44687,8753,18353,24412)
Unknown column 'np.person' in 'where clause'