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 (18648,18981,4765,17904,18427,44739,19057,18301,17351,44674,9341,24411,17657,30135,18650,44873,16885,32454,28530,17755,44531,44868,45517,18279,16935,45567,44845,45421,44867,39676,44849,18794,44762,17756,14402,44855,45072,6609,44869,17278,44768,44765,45042,17981,45286,44766,6782,45277,44775,44858,44745,44767,44837,44711,44764,17335,44835,17848,30986,44687,17237,14622,17527,18996,18237,22509,18185,44863,36472,44861)
Unknown column 'np.person' in 'where clause'