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 (17114,44878,45262,18652,44836,22509,44689,36472,17009,24412,18894,44768,44854,3883,24441,44863,44674,6862,28530,18237,18430,19078,17601,44870,17657,6875,37267,18279,17237,4765,44765,14622,24438,10402,45567,45072,18648,44669,44845,8753,18996,45517,16935,5993,5259,34194,45042,13,44848,45518,6609,44767,44775,44711,30963,44866,14402,44745,17092,17904,17755,17848,13425,44671,9341,13988,44687,17351,18794,44868)
Unknown column 'np.person' in 'where clause'