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 (6862,44768,44870,45180,44851,45561,17114,44640,17278,17835,44861,17237,6609,19078,44739,13922,37057,18042,10402,17756,24441,13,44531,17601,31354,45516,44854,44689,44775,45518,44762,18279,44856,18894,44745,45277,17657,44764,17092,13425,18650,44685,18900,44711,5388,17703,45177,24411,44873,45517,18427,44869,44687,44848,5259,30963,16935,4765,18794,17009,44878,45042,44853,44894,44867,44836,36472,17981,18185,18688)
Unknown column 'np.person' in 'where clause'