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 (44848,45042,4765,24438,3,45561,44766,44884,45177,32454,44868,44739,45277,16935,18981,22509,18279,44835,44863,44767,4686,17771,44867,6875,44768,17835,17278,44745,13425,18719,17351,18900,44855,14622,44854,24412,13988,44674,45229,44640,44845,44853,31354,44775,17755,45072,17756,45515,17009,44870,17492,44836,44669,17335,44894,28530,45262,17703,13,45051,17904,36472,18430,17839,37057,18286,18894,19057,16885,18446)
Unknown column 'np.person' in 'where clause'