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,5259,18652,18286,44689,44873,45072,17278,18894,24412,45286,45561,45346,44775,13425,30963,44849,44854,45177,3,45516,3883,5993,44764,18688,22509,44867,44687,6862,18172,18900,44685,18301,45515,34194,44884,17335,19078,44845,5388,6609,18279,17009,39676,5410,44671,45229,17703,44836,44745,44894,18353,16935,44866,17835,32454,17492,45051,44765,24441,24438,31354,17556,45042,18185,17755,45043,44858,17237,44766)
Unknown column 'np.person' in 'where clause'