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 (32454,18446,44687,44869,10402,17848,18301,44894,18996,17981,17835,18719,8753,44775,18042,24438,5410,17237,17756,24441,18279,18652,18172,44689,18981,44671,17703,43800,19057,44865,45051,44745,18688,13,17492,44861,24411,28313,16935,17527,44765,45515,4686,3883,18650,44878,45517,44854,44669,18900,44764,44867,17351,45180,39676,14622,44856,17755,19078,13425,18237,44766,44851,44685,44873,30963,4765,45042,22509,36472)
Unknown column 'np.person' in 'where clause'