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 (30963,24441,18430,44865,44687,44671,18172,18237,18648,17527,17755,3,44878,17092,17278,14622,18650,44674,37267,18900,18981,24412,45561,6875,22509,30135,19078,17556,45515,16935,44867,17335,45177,44854,17848,5388,45346,13,19057,6609,44849,37057,44856,45518,18301,17904,18279,14402,34194,45286,18894,8753,45229,45072,17114,17351,44855,44861,17839,44848,18446,6862,36472,44851,4765,13425,44768,10402,17835,44853)
Unknown column 'np.person' in 'where clause'