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 (45262,45277,28530,17009,17278,3883,44775,44768,18430,17756,6862,5993,22509,17092,44848,45072,44868,28313,43800,18652,10402,44689,45051,45518,18648,16935,4765,5259,18996,37267,17351,17755,18719,44863,13425,44869,44870,45177,17839,44671,14622,44531,8753,17335,45180,45421,30135,19078,18650,13922,18042,18185,44853,44851,17904,44640,31354,18172,18301,44845,6609,45561,17114,44711,19057,44739,45286,18237,44855,44745)
Unknown column 'np.person' in 'where clause'