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,18894,16885,9341,18996,44894,22509,45516,44861,18172,17657,45072,17092,45515,44762,45042,30135,44865,44689,45421,17756,3883,18648,6875,17335,44870,24412,44531,28530,17835,18427,37057,45346,19078,6862,32454,30963,34194,17771,37267,17009,17755,44869,18286,13922,30986,10402,18900,44669,18446,17351,19057,6609,24411,44878,44775,44867,3,17114,44764,18650,8753,44855,44866,18981,18279,44687,18652,44868,45262)
Unknown column 'np.person' in 'where clause'