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 (45286,19078,44845,18981,30963,45180,44858,18301,18172,17904,44531,17527,16885,17756,6862,44764,17601,17492,24438,13988,45515,45561,45346,17981,17009,44849,18237,24412,44837,44863,13425,5993,44689,44865,31354,18427,45516,18894,44861,17703,45043,17771,17755,6782,44739,37057,24441,17839,4765,39676,18286,18042,44873,45262,44869,44848,44856,34194,44878,44867,18719,5388,45517,18688,44884,13922,44855,14622,22509,18446)
Unknown column 'np.person' in 'where clause'