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 (45286,17237,45421,44674,18648,45567,24412,45072,19057,6875,18794,30986,18172,37267,44767,44851,45516,44739,17009,8753,44640,45277,44878,28530,45515,17904,6782,44856,5993,19078,44685,44858,17771,18900,17351,44768,44866,13988,44762,44863,14402,18286,45229,18446,45180,17114,17981,24438,44766,45051,18353,44775,18185,44845,18042,22509,13922,18650,36472,18652,45561,17839,18719,18279,13,17703,44669,45262,44848,6862)
Unknown column 'np.person' in 'where clause'