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 (6862,45515,44669,44531,18794,17756,37057,17839,14402,45042,19078,13425,43800,18981,6875,18996,44849,36472,44856,45229,44855,17848,24412,16935,45516,32454,45517,24441,18652,4765,44764,44863,45518,44745,18688,44739,18286,45180,22509,44711,5388,4686,18353,28313,44873,17904,17009,44835,44884,17492,17601,44865,13988,44767,45346,44870,30963,9341,13922,45567,44762,44867,44853,44875,45072,18042,18172,8753,17237,31354)
Unknown column 'np.person' in 'where clause'