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 (6609,4686,36472,17756,17835,44768,14622,44878,17601,44873,45421,30135,18279,34194,45180,17009,44835,18427,44865,24412,45346,18430,19078,6875,44866,18572,17092,19057,17556,45561,44765,37057,45177,44848,17237,44869,44851,44884,18353,18900,18981,28313,18237,44739,17527,44863,17755,44766,44836,17657,9341,5410,44875,18996,5388,4765,44711,44640,45229,22509,44867,24438,45567,44870,45517,17278,32454,44685,44853,45515)
Unknown column 'np.person' in 'where clause'