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 (44845,45229,18427,18286,10402,13988,36472,44863,45421,45042,39676,17601,44878,9341,32454,13,13922,3883,44855,18996,28530,17009,17335,6862,44669,45051,19057,17237,17492,44837,18648,44853,6782,45072,44768,24412,44711,18981,30135,18572,44865,44884,18900,44861,44856,45517,44854,24438,44745,18688,44762,44848,45177,44835,31354,17092,5410,44687,45346,16885,17839,4765,44674,44873,8753,24441,18652,17527,18794,18719)
Unknown column 'np.person' in 'where clause'