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 (18185,45177,45515,28530,17237,45286,17092,24412,44762,44687,17839,5410,17835,44768,17114,3,44866,18648,18353,17601,13922,36472,44765,18427,18430,44669,45180,44849,18279,44766,24441,17848,44671,45229,6609,18794,17009,44855,24438,17351,19057,30986,22509,17527,45277,17335,18237,44689,18042,6862,45517,44836,44745,44674,18688,13425,18650,34194,44854,45516,37057,17556,44711,18652,44869,6875,44858,18301,44875,16935)
Unknown column 'np.person' in 'where clause'