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 (44768,13,44685,45515,18719,17835,17703,44855,9341,18794,18172,17904,8753,44531,18572,30986,18430,18301,44711,17657,45346,18650,17527,44671,44878,44884,44765,45177,17237,4765,45051,28530,13425,44767,44764,17839,17092,14402,30963,13922,44766,44863,44861,45286,18185,24412,17492,18353,16935,18427,18900,45561,44866,44854,45072,44640,16885,43800,17601,6862,18237,36472,18279,44851,44870,45277,18286,6782,6875,44689)
Unknown column 'np.person' in 'where clause'