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 (24441,14402,44745,18185,18286,28530,37057,18301,13425,44856,44861,44848,18572,30135,45229,4686,45518,6782,17237,19057,44671,18279,18237,18353,44765,44689,16885,18042,44835,44873,44851,17009,17657,45517,4765,44762,44865,32454,44669,44854,37267,6875,17335,44858,18900,6862,44868,45043,5388,16935,45277,17351,45072,18650,17756,45516,3883,45262,18172,44764,18981,44878,17771,18446,44531,44884,44711,34194,13988,44640)
Unknown column 'np.person' in 'where clause'