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 (44875,44856,43800,36472,18688,6782,18430,44870,44764,8753,18981,30963,44640,44739,45229,44863,22509,18185,6875,44685,44855,19078,45516,37267,44837,18237,44845,17351,45043,24438,44745,44851,17835,18353,45517,45567,44861,17278,5410,44531,44835,17527,45515,45346,14402,3,45561,44878,18279,18996,5388,17756,17904,14622,6609,44866,17092,18650,44836,13425,44689,44765,10402,18894,17755,13922,32454,18652,24411,44873)
Unknown column 'np.person' in 'where clause'