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 (44531,32454,44866,36472,24441,45561,5993,18900,17092,3883,44884,44851,45051,44687,45042,10402,19057,18446,44669,18301,45262,44865,17237,44849,13425,45043,19078,16935,45516,17492,17835,17755,17351,6875,31354,44671,44745,4686,45277,5388,17601,44835,44674,24412,17904,5259,44856,22509,44765,13988,17981,45518,18172,43800,17756,4765,18648,45421,18042,44868,45180,44878,44689,18430,44863,18652,44867,44762,28530,44768)
Unknown column 'np.person' in 'where clause'