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 (13425,14402,44671,17278,9341,18353,5993,14622,28313,22509,44739,44865,8753,5259,6782,28530,18042,18427,17527,44884,44873,44775,6609,24412,17703,45043,45561,44849,5388,44856,44870,4765,44866,45072,44762,5410,44894,45567,17755,17904,6862,17601,34194,17835,18900,18279,18650,44669,17492,44837,18430,19057,17335,4686,13922,44745,45277,24441,44689,45262,17657,18237,18688,45229,45180,44685,17092,45516,45515,44768)
Unknown column 'np.person' in 'where clause'