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 (13988,44685,44875,44689,6862,16885,17657,18996,17556,44848,24441,44767,6875,44873,14622,5993,14402,45180,17981,17601,36472,17492,18719,44674,8753,44669,31354,17835,30963,17703,44865,18688,44687,17771,44884,22509,44894,13922,44765,17904,44867,44845,18353,18301,13,44739,45051,44869,17335,18042,18648,45518,24438,44861,17278,18894,44853,6782,17848,45177,5259,18237,17527,16935,18430,45567,17351,17114,19078,44878)
Unknown column 'np.person' in 'where clause'