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 (13922,18981,44868,39676,18794,13988,36472,44671,17835,28530,44848,44866,44835,18430,18652,17114,18172,44531,18900,44861,17657,19057,4686,45516,17771,17335,14622,44875,18237,45180,45043,44863,44640,43800,18446,45177,45262,18353,44854,45561,44765,18185,44867,17756,44764,17492,45421,24411,44767,44837,9341,44856,44674,44775,44766,17556,44762,30963,44869,44745,17009,44853,17904,18427,17848,44878,22509,18042,37057,45051)
Unknown column 'np.person' in 'where clause'