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 (8753,44531,44745,45051,32454,4765,24411,45515,44669,44866,45286,17527,24412,45567,44835,45561,17703,24441,37267,44855,44711,17904,9341,44851,30135,13425,13922,17335,28530,18900,44868,18301,44858,45518,44689,45072,45177,17755,18572,13988,5388,6862,30986,22509,34194,18185,44865,36472,5259,17351,45043,16935,17009,18237,18894,44775,18430,10402,44671,44767,17771,17092,17492,18172,5410,6875,16885,18719,6609,44867)
Unknown column 'np.person' in 'where clause'