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 (28530,18894,45286,8753,24412,44853,18172,18301,17835,13,45180,44845,18185,28313,17237,30963,44869,44861,44739,45561,44768,6782,45262,44863,44851,44765,44775,16885,24441,44764,17703,37267,44837,45277,44671,17351,17657,6862,44669,45515,44674,44745,44868,18652,17601,17335,30986,3,18648,45229,18279,18353,31354,18286,44766,17756,17556,44875,45421,18900,44894,22509,37057,24411,6875,9341,17092,44835,19078,4686)
Unknown column 'np.person' in 'where clause'