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 (44745,45051,44845,31354,44765,18172,4765,18427,5993,44863,6862,45177,17756,18286,6782,44640,18279,17092,18185,44848,44875,17835,13425,44867,17703,45229,44671,43800,18688,5410,6875,44851,18719,16935,17492,45072,30135,44858,44870,36472,28530,16885,17351,17335,10402,44868,45567,19078,18996,28313,24412,22509,18446,44849,17657,44856,44674,24438,5388,17527,32454,18237,44711,44836,18648,17848,45043,44884,6609,44531)
Unknown column 'np.person' in 'where clause'