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 (14402,24441,24411,17904,18185,45229,19078,17703,36472,44531,10402,17492,17335,44855,44869,5993,30135,44866,24412,14622,9341,44849,39676,3,31354,18900,45421,45177,18279,4765,17756,44837,6609,45051,18996,44848,44764,17981,44640,16935,18719,44674,45042,44689,37267,18301,4686,30963,6862,17527,18688,13988,18648,18172,28530,44894,45072,6875,44851,44745,28313,18237,17009,44878,44669,32454,45286,17351,43800,17848)
Unknown column 'np.person' in 'where clause'