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 (45277,13,45262,17278,18652,34194,18427,44711,18279,44865,18719,17092,19057,44835,44861,17335,45180,45518,17351,18353,14622,45177,17601,45516,44894,17009,30135,44674,45072,17527,44531,44765,45043,44868,17839,17556,45042,6875,44685,43800,16885,44855,17703,17981,44739,44745,13922,13988,17835,36472,24411,17771,4765,18981,6862,18172,44764,14402,17114,4686,44854,30963,5259,45229,18648,32454,18430,3883,44768,44884)
Unknown column 'np.person' in 'where clause'