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 (45517,13988,17237,17601,44687,18894,44851,16885,18430,44861,45229,5993,6862,44884,39676,44868,45043,37267,17771,43800,19078,44856,18279,4765,44762,44765,17756,44855,44711,44685,44894,17981,44858,45516,17657,14402,6609,44870,5259,44875,31354,45515,44854,44863,24441,17904,13,45286,18719,5410,45177,18237,17556,13922,44836,6875,44674,18900,18688,24438,18981,17092,17835,17848,16935,18794,44745,44640,45277,44671)
Unknown column 'np.person' in 'where clause'