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 (13922,18301,18172,44764,44766,45518,44768,44894,17756,24411,17981,6862,45277,44873,44867,34194,18688,6875,3,45515,44745,44878,18900,44687,6609,24412,18042,44685,44856,3883,44868,45180,22509,18996,44671,37057,18648,44674,44870,13425,32454,18719,44853,44863,36472,44854,13988,18572,17703,44837,44767,16935,17771,17351,44851,43800,44884,45262,18446,44711,18279,4765,18650,44858,30135,45177,37267,17601,44762,44866)
Unknown column 'np.person' in 'where clause'