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 (34194,17771,44875,44766,44765,18652,44764,44870,18446,44640,18042,44762,24438,44865,43800,44669,14622,45277,14402,18648,44767,39676,17839,44851,45517,9341,32454,44863,44845,18996,10402,45567,44858,44775,24412,6862,17657,44869,13988,17703,17904,18279,17527,5993,44848,18688,17848,45515,17351,18900,44531,44894,17755,37057,45072,6609,6875,30963,18650,44884,18981,18894,18237,16885,44853,17009,44855,45516,17237,37267)
Unknown column 'np.person' in 'where clause'