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 (44762,6782,44869,45515,13922,4686,18042,45051,17492,17703,17904,22509,16935,45262,18894,44531,6875,44861,18719,17351,44775,45561,24441,37267,44674,17835,44878,24411,39676,44689,17755,44845,6862,18794,5993,45177,18650,18648,18996,44767,44865,17092,17771,17237,44768,5259,44711,30986,17657,44745,44849,19057,45518,44863,45346,44856,17601,44868,45043,45567,45180,17009,36472,44875,18172,5410,17335,17527,3,17848)
Unknown column 'np.person' in 'where clause'