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 (45072,45561,45042,31354,44739,3883,44861,18427,8753,13922,18279,44866,45515,45517,45516,44853,45229,3,44836,44767,44856,45051,45177,18688,18650,45180,18996,17756,44854,44884,28313,44687,44837,17009,18719,44640,17904,14402,44845,18430,44878,18572,17981,6862,4765,44867,30986,17278,44674,45286,17492,5388,18042,17657,13425,32454,44671,44865,44762,19057,44764,43800,13,44766,18446,28530,17092,18900,16885,44863)
Unknown column 'np.person' in 'where clause'