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 (44878,9341,18353,19057,45561,44767,17278,18652,44685,17556,44873,18286,45517,17835,44868,24438,45516,44687,43800,44851,17527,44884,6862,13922,4765,18996,17981,45567,45180,16885,44745,44711,45072,18794,17839,45286,6609,44865,44867,45515,28313,44739,14622,45229,44669,18981,44845,17755,28530,13,30135,36472,44836,18279,45042,32454,44848,18430,17848,22509,45051,6875,44866,5388,17492,13425,44671,5259,6782,8753)
Unknown column 'np.person' in 'where clause'