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 (5410,18172,17335,17835,45518,18719,44878,18652,5993,44869,17556,17839,44765,44687,45286,44865,44868,43800,17981,45517,45180,17755,44669,18427,18688,44671,17527,44848,17703,30986,8753,37057,37267,17009,44640,4686,17114,44685,3,44853,18042,18996,17657,18353,44711,28530,19057,5388,24412,18237,17492,18894,44870,32454,44873,44768,24441,45042,14622,44531,13988,19078,18981,45177,44835,3883,17278,17237,34194,44858)
Unknown column 'np.person' in 'where clause'