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 (44851,18446,30135,6862,45051,18279,44854,44685,18650,4765,32454,18185,6875,5259,45518,45229,5388,44531,17755,44765,45561,4686,14402,13922,18572,45180,45421,44835,44640,17848,44894,28530,5993,44845,13,18172,19057,17237,28313,44878,18996,18353,44767,30986,16885,17904,44866,17835,44855,44687,45515,44739,44689,39676,44766,3883,44837,18900,18237,44674,10402,17092,17335,17351,45042,44768,17114,44884,18981,44848)
Unknown column 'np.person' in 'where clause'