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 (44767,18279,17848,18427,18894,32454,4686,45517,18572,6862,17601,45229,44836,44745,45561,44867,44768,18185,17703,45180,34194,44674,14622,17351,44669,18900,19057,6782,44875,18353,45177,3,44531,13922,9341,10402,44640,17114,18172,18286,45043,6609,24411,18446,44878,17335,17904,44762,24438,30963,17237,44848,36472,13,17771,45516,44671,44858,17657,44855,16885,24441,44869,45262,39676,45346,18650,44856,44863,44861)
Unknown column 'np.person' in 'where clause'