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 (44711,44689,44845,44775,44875,17278,4765,24441,45515,45262,3,43800,44849,39676,44878,5259,18996,18430,45561,17771,44745,8753,17848,44870,13425,18794,5410,34194,44894,19078,44768,17703,44861,17335,17009,44848,45229,37267,17835,18286,22509,44836,45277,44863,31354,44767,45072,44835,17492,10402,17755,17904,30986,13922,37057,44837,17756,44866,4686,18900,17839,18446,17601,14622,45518,19057,14402,17351,18894,17657)
Unknown column 'np.person' in 'where clause'