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 (24412,5410,3,44863,17755,45518,44837,13988,36472,18286,44867,30986,18652,18042,18185,44845,17835,43800,45516,44858,13425,45277,17114,22509,44687,17009,6609,45229,34194,18172,44689,17904,17351,44869,6862,44854,17756,44866,13922,44766,5388,45180,39676,17556,14622,32454,5259,18996,44873,44764,17092,9341,37057,17527,18279,18430,19057,17335,45517,44671,19078,8753,18446,18427,44836,44865,17839,44855,45561,4765)
Unknown column 'np.person' in 'where clause'