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 (44775,45517,36472,44845,4686,44854,17092,44687,44767,18237,24441,17601,44745,17009,17756,18301,18446,17278,44531,18185,44669,44764,17114,44849,18996,5388,3,6875,44873,44861,17839,45072,44674,44848,44867,6782,18353,17771,37267,18894,5259,17527,45042,44768,45051,44868,4765,18794,24411,30986,17351,43800,10402,45346,22509,17848,44856,44762,18652,44875,30135,45262,6862,18279,44711,44689,14402,31354,45177,3883)
Unknown column 'np.person' in 'where clause'