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 (17351,18353,17237,44671,17756,44765,17278,24441,16935,18981,17527,45042,45262,32454,17848,28313,5993,44875,45229,6609,44865,44858,44711,18185,44531,31354,19057,44856,45517,45051,44835,44894,17835,18719,44873,30135,13922,44768,17335,44853,45561,18900,36472,44836,44687,13,17904,44685,17556,3,24412,34194,44868,45072,44775,17755,18042,4765,45516,18648,44867,6875,24411,44762,44848,44854,6862,45515,44764,44861)
Unknown column 'np.person' in 'where clause'