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 (32454,18042,9341,10402,24438,17492,18237,17756,28530,18185,34194,31354,44856,44894,19057,28313,18430,44836,45042,44875,18172,44868,18794,18279,14402,18650,45421,45567,44861,17009,45262,44869,44764,44765,5259,45072,6875,24412,45516,18301,36472,17755,30963,17601,44870,45177,44687,44762,5388,18427,24411,8753,44711,19078,13,44689,18286,44671,17839,44854,44531,6862,18353,17278,45180,17771,45286,17904,13988,17703)
Unknown column 'np.person' in 'where clause'