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 (18301,45517,44739,24438,17278,17601,34194,13988,32454,44687,18652,44845,8753,44767,45346,18446,14402,18572,44837,44894,18172,5388,10402,44671,36472,5993,17009,17981,18042,45515,28313,17904,13922,44685,18286,18353,45567,17835,18650,45262,3,18648,30986,6862,13425,45072,31354,45051,44854,44765,18900,45043,44868,17351,9341,19057,18237,4765,18794,44764,3883,44766,44689,44861,17755,30963,17237,17092,45516,24441)
Unknown column 'np.person' in 'where clause'