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 (45042,3883,17904,18794,18279,18446,17009,17492,45043,44711,36472,44845,44853,18996,24412,43800,14402,37057,17657,17601,17556,45561,45567,45229,18286,5993,44861,45286,44855,18719,17756,6862,44894,17237,44739,45421,18353,44873,45517,45516,24438,17527,44687,16935,45515,44689,44669,17351,17755,17835,17703,13922,44775,44674,28313,17848,8753,18572,44836,18688,44671,44865,5410,18185,44768,18427,44766,44765,45051,45180)
Unknown column 'np.person' in 'where clause'