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 (45286,17756,13922,17835,34194,44868,17703,30135,30963,17278,19078,36472,44711,14622,44768,17657,44745,5259,18446,44858,44835,44764,18719,44689,44845,44866,44854,28313,43800,45515,45517,45072,44870,45180,18688,44884,44766,17527,44855,44836,44767,18185,5388,18996,19057,17114,18286,31354,5993,18794,13988,4765,24441,44875,45043,44762,22509,44640,6609,45277,44739,45262,44873,44531,6875,18900,3,45516,17492,8753)
Unknown column 'np.person' in 'where clause'