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 (18572,44855,30986,17527,44669,5410,44854,18652,17351,44775,18648,44685,8753,37267,39676,45072,45561,44674,44884,45515,17009,44837,4765,44863,45051,19057,6609,44835,45229,34194,44869,18894,17756,44865,18981,17335,45517,43800,31354,24438,24412,3883,17981,28530,32454,44870,36472,14622,28313,44868,16885,18286,18172,44531,44853,9341,17492,10402,17657,44836,6862,44866,44689,4686,6782,44856,5993,22509,44767,3)
Unknown column 'np.person' in 'where clause'