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 (18688,24438,17981,44870,17237,30986,18172,16935,8753,16885,17278,30135,45286,17601,17556,44711,44845,17771,44873,17839,45517,44853,44762,44878,45421,6875,14622,44764,44884,17335,45042,44849,18572,44768,45229,5410,44863,18981,44766,6609,24412,18353,18900,45177,44685,44855,45180,17114,17848,44837,44531,18286,45561,45516,17527,31354,19078,45043,37057,44856,18446,19057,44689,28530,44848,18301,44875,18650,44775,44836)
Unknown column 'np.person' in 'where clause'