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 (18042,45346,44845,44531,18650,44851,22509,30986,44685,3883,18652,44870,44739,18688,17904,17601,17981,32454,44865,17839,9341,17703,45043,44855,5388,44878,44689,17848,37267,44768,44640,45518,28313,44873,18794,18981,5410,17114,17756,18172,44711,6862,17835,18894,18446,18996,45042,17351,13922,44856,18301,24412,6875,13988,45262,8753,17492,14622,45051,18427,36472,28530,44884,4765,16885,5259,18353,6782,31354,44687)
Unknown column 'np.person' in 'where clause'