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 (17904,44685,45346,45042,45567,43800,4686,19078,9341,17756,14402,17351,30963,44878,3883,18981,17492,17703,44531,17278,44835,45177,24438,45561,44739,5259,18427,44884,44765,45515,17835,30135,45180,44855,18185,17009,3,44854,18430,34194,45277,45043,28530,44687,17981,44861,45517,18301,17527,44858,44851,5410,44873,17839,36472,18650,44865,24411,45051,44764,17771,18894,13,44674,44767,44856,44745,17657,17755,13922)
Unknown column 'np.person' in 'where clause'