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,44863,13988,17981,3883,45567,17092,17657,44762,24438,17703,17848,18427,44745,18648,44853,45072,17237,18301,31354,30986,18237,45518,30135,24411,22509,44849,45229,18652,44768,44856,32454,44861,6609,44764,45561,4765,17335,44868,18279,44767,45517,30963,44851,45051,34194,6875,19057,18430,18172,17755,44669,5388,17839,5410,44674,44867,18719,44848,13,18185,10402,17601,44865,45042,45043,14402,18650,43800,44531)
Unknown column 'np.person' in 'where clause'