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 (18286,44858,4686,45518,44894,44674,43800,44687,44865,36472,44837,18981,44671,44868,6609,18427,45042,44854,17278,17848,17756,44775,30135,45346,44739,44855,44669,9341,45262,44745,34194,5993,17527,18650,16885,44861,44685,18900,5410,45286,18172,18430,44765,17771,44531,17657,24438,44873,13922,44764,8753,30963,18185,17904,32454,18652,18719,18042,45515,44866,13,10402,17492,45180,18648,44853,45421,44867,44766,18446)
Unknown column 'np.person' in 'where clause'