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 (30135,4686,10402,5259,44854,44863,18894,5388,18981,17335,18688,44835,4765,17703,17756,44867,45277,18900,19057,24438,18301,44745,45042,18572,6782,45346,16935,44687,45286,45518,44894,44848,17904,44845,44711,18279,44836,8753,18430,17278,44851,44674,6609,37057,45515,44767,44640,45177,44531,17092,37267,17237,44689,17771,17657,30963,44768,45561,39676,22509,44868,44765,44875,31354,18996,43800,44856,30986,17114,44884)
Unknown column 'np.person' in 'where clause'