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 (44765,6782,18185,44671,17703,30986,10402,32454,44853,17092,18894,17848,44845,13922,43800,17839,44858,17756,44854,44766,31354,4686,45051,44640,45262,45518,45346,44878,5259,13988,45177,4765,45043,18650,5410,24411,44689,18237,18572,44863,44711,44861,45229,44764,19057,9341,44868,6609,6875,44768,30963,14622,44687,44875,45072,18648,18794,18719,44851,18301,18446,17009,17755,17601,45180,17278,44849,28313,18427,17335)
Unknown column 'np.person' in 'where clause'