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 (44640,24412,17848,17527,36472,44671,45051,44745,17756,44875,18652,19078,24438,44762,44873,14402,5410,39676,17278,44865,44739,44894,9341,17904,19057,18650,28530,44711,6862,44766,4686,17092,17351,31354,17703,5259,45516,30986,8753,17981,44669,18446,44863,22509,44835,6782,44836,17601,13988,18981,18172,18279,18996,45517,3,18794,13425,44870,17556,44837,18353,45180,44858,44845,43800,44853,45515,44869,24411,44849)
Unknown column 'np.person' in 'where clause'