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 (44835,44687,4765,17981,45229,44849,44767,45516,44711,44878,17703,44671,45043,17771,17278,24438,17556,13,44775,6782,44873,44765,13922,45286,17848,10402,44875,44762,17114,45517,45051,44855,44837,45518,43800,44854,17756,9341,44856,30135,44845,24412,44764,6609,17839,37267,44870,44867,44768,13425,44853,45346,18981,44685,45072,16935,5388,19057,44866,18648,44674,17835,17527,17657,36472,4686,17009,44848,31354,17601)
Unknown column 'np.person' in 'where clause'