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 (13922,6875,45421,17009,45517,9341,18981,17351,17492,4686,14622,18652,30963,44775,17981,24412,44867,45042,44878,37057,13988,18042,44848,44762,18172,17114,18279,44845,18427,44854,18719,17556,44531,44865,45286,24438,44767,18648,19057,8753,34194,17278,45072,44858,17237,14402,44875,44768,44765,17755,32454,6609,45177,5410,16935,16885,44866,45043,44764,5259,44669,44870,18446,44869,44766,5388,44835,18650,37267,17335)
Unknown column 'np.person' in 'where clause'