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 (17755,5993,24411,18185,13,44861,14622,5259,8753,45262,18894,44640,4686,17904,18353,44894,44745,22509,44674,5410,19057,18572,24441,44765,18900,30135,44685,44531,44875,16935,44671,18427,18237,44869,24412,18042,44868,44711,17237,44849,39676,45515,44848,45051,45072,45346,45567,45177,30986,44739,44775,17278,6782,6875,18286,44762,34194,44689,17848,44856,18996,17092,45518,18279,18794,44854,18648,5388,44687,44845)
Unknown column 'np.person' in 'where clause'