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 (4765,44894,13922,18572,18996,44671,17351,45518,45262,18279,17556,44854,44884,44764,44687,44853,44856,18900,18652,13425,44869,44855,17601,6609,6862,45177,44851,3,44865,18042,36472,37057,44531,18894,17114,44766,18237,44836,17756,44640,17771,44739,24438,45051,44765,4686,9341,17237,44867,18981,5388,18719,44745,17839,44768,34194,24412,24441,6875,18794,18301,24411,45517,45180,30963,45561,44845,17703,18427,17527)
Unknown column 'np.person' in 'where clause'