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 (18042,13,18648,44851,3883,44689,44669,18172,30963,44745,44767,44869,39676,44853,18981,6862,28530,9341,37267,45229,44870,45517,17703,6782,18446,44845,17904,44884,45072,45180,30135,44894,34194,17114,44849,17756,44867,44775,44863,5388,18996,45051,45177,17092,18894,44854,44762,18650,44865,37057,13922,24441,44848,44856,24412,44855,13988,18237,18719,45516,44765,43800,44640,44685,32454,44837,8753,18301,44836,14402)
Unknown column 'np.person' in 'where clause'