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 (44858,5993,44766,14402,13425,17114,44878,5259,44685,17703,44711,18894,17335,18279,44745,44866,30963,44762,45043,37057,10402,45516,44849,45051,6609,44531,17848,17351,18996,45518,22509,18900,18237,45346,44689,44674,45180,44856,44854,45567,37267,44764,44845,44669,18446,13988,18652,44739,44870,44767,3883,4765,17601,39676,19057,17981,44863,18172,18719,18042,17839,28530,17771,44768,14622,45561,43800,17237,44873,17904)
Unknown column 'np.person' in 'where clause'