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,17527,17904,24411,44858,44861,34194,44853,5259,10402,44856,17601,17756,17278,43800,44745,44868,44863,18301,44711,45177,22509,17114,13988,44767,19078,44855,45518,37267,31354,17492,24438,17657,44762,18900,36472,17839,18894,18185,18172,44685,8753,28313,39676,44674,18648,44875,13,44849,14402,17981,44870,45043,44865,18279,44768,45277,45515,18652,3,14622,45421,44764,44878,3883,44775,18286,44765,18237,45516)
Unknown column 'np.person' in 'where clause'