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 (44845,44687,45180,44894,17904,45346,18446,44856,44867,39676,18648,30963,18794,45177,45518,5993,44768,18430,17351,17848,18042,17556,44863,44848,24438,17981,45517,44855,44669,32454,17657,44764,18981,17703,44775,3,44878,14622,44869,44835,36472,16935,6782,44868,17335,45286,24412,4686,44875,18237,19078,44674,30986,24411,37267,17839,18894,17092,17237,44689,17755,43800,18427,17009,44837,8753,28313,17278,44873,44849)
Unknown column 'np.person' in 'where clause'