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 (28530,5993,44855,17009,44768,18237,16885,18286,44640,24411,44764,37267,13988,45042,34194,45517,44861,4686,18185,18719,44836,45567,45561,44845,30963,30986,44869,8753,18279,6862,39676,18301,44848,24412,45177,18427,14402,22509,44765,14622,18650,6609,13,44878,44849,18652,17556,44868,9341,16935,45043,44837,18648,17904,31354,17839,17351,44835,18353,44767,44685,17114,44894,44870,3,44669,44867,45515,24438,44674)
Unknown column 'np.person' in 'where clause'