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 (44867,18650,45180,45515,18353,4686,22509,17981,28530,30963,45561,45346,34194,13,45043,6862,17904,3,45072,37057,44689,17703,17835,18237,45517,43800,19057,45286,16935,44865,17657,17351,17755,44848,44674,17492,13425,18996,5388,8753,44687,44875,14622,17556,44764,44640,17839,5993,3883,37267,44894,44768,6875,18430,45518,24438,44861,30135,44851,30986,44869,44854,45421,44866,36472,17848,45567,10402,44745,44858)
Unknown column 'np.person' in 'where clause'