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 (45515,18650,18172,44766,44855,13,17492,17703,5259,17835,18719,5410,44762,9341,24441,18894,18042,18996,44764,18446,44837,44674,44851,13425,17981,44894,17657,17092,36472,44671,44848,17237,16935,44835,45180,18794,6875,18572,44863,45286,4765,18648,19057,17771,14622,44854,44768,18353,45229,44765,44640,34194,6782,28313,24438,45277,18652,17904,44873,45561,44869,44878,17755,17335,45177,8753,5993,44868,45517,19078)
Unknown column 'np.person' in 'where clause'