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 (18648,18042,10402,45043,44531,45051,5388,17351,18981,18427,44711,44687,17556,45516,44669,37057,31354,44765,34194,44853,45561,18446,22509,18185,44745,44640,44849,44674,6782,44837,44836,44851,6875,16885,45180,44764,17237,17335,45072,44768,17703,28530,6862,18996,18172,17657,24412,44775,3883,17092,18794,30135,18900,24411,14402,24441,18286,18894,5259,18301,45277,44671,18430,44867,45177,18353,45517,17835,17009,17904)
Unknown column 'np.person' in 'where clause'