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 (30963,5388,30986,18427,44858,45286,17351,13,44869,44865,45229,18572,30135,44853,44767,44765,18279,4765,18996,45042,5259,34194,44848,17237,44855,14402,45177,44836,18648,32454,44640,37057,44866,44867,45567,45180,44878,5410,44689,13922,10402,16935,24412,45515,45072,44884,31354,6862,18688,6609,17657,44856,45517,44845,17981,18042,17756,18237,45518,17556,18185,4686,17335,13988,44739,44863,44768,8753,37267,3)
Unknown column 'np.person' in 'where clause'