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,6862,44762,44853,45421,44845,31354,17114,18794,24438,4765,17335,45180,45051,44837,4686,44765,44854,17657,44766,18996,18981,45043,18427,17835,45518,14402,44868,45567,44875,18185,19078,17756,44689,45561,44836,17601,5993,44745,37267,18279,18650,18237,30963,18430,19057,3,18301,44861,17904,44873,18172,24411,44531,44863,3883,24441,24412,17237,44768,22509,18286,17755,44858,13922,18894,18648,13425,44669,17527)
Unknown column 'np.person' in 'where clause'