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 (45346,17492,44531,24441,6609,18427,18301,19078,44739,18042,45277,3,44853,43800,45515,44835,22509,18794,44689,45567,36472,45516,44858,17335,5388,44856,19057,13,17904,30986,17556,45229,45561,10402,14402,30963,44674,44851,45517,39676,24412,18650,24438,32454,44845,17351,17703,28313,18286,13425,17278,17657,6862,44868,8753,17237,45043,17771,44875,45177,6875,9341,4765,44765,44745,18185,34194,44764,18900,18279)
Unknown column 'np.person' in 'where clause'