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 (17492,5388,45567,45516,44870,45042,3,6609,30986,5410,14402,19057,18996,17755,44640,28530,44687,17657,44867,17839,44775,37057,16935,18353,45518,32454,44531,45051,17335,45517,24412,28313,18894,44878,24438,17703,44875,44765,45421,44849,17835,18172,18981,31354,5993,30135,44845,37267,44851,6862,44848,18446,6875,44837,45229,17527,18286,44854,45561,44739,44711,44866,17756,34194,45286,10402,18430,9341,45180,44894)
Unknown column 'np.person' in 'where clause'