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 (17278,44868,44858,13922,17703,22509,44687,3,44739,44869,19057,44870,45177,37057,17839,45346,37267,39676,44854,45043,18981,18301,17237,19078,5993,13988,24411,43800,6862,44835,44861,45561,13425,24441,45229,6875,44894,44671,18427,45517,5259,32454,9341,44865,44849,18794,45515,17335,44845,18279,44837,6782,18237,44853,34194,18900,8753,5388,28313,30135,17848,17556,44765,31354,17771,10402,44745,16885,44884,44836)
Unknown column 'np.person' in 'where clause'