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 (44849,22509,30963,24438,31354,45421,45346,36472,44884,13,18353,17492,17904,17755,45229,3883,45286,17756,19057,18301,28530,30986,44853,17981,30135,8753,6862,44835,24411,45072,13425,18572,45051,17839,16935,44762,44775,18042,44845,44878,44836,17009,45180,45262,18286,18688,32454,18172,44711,44766,44640,24412,44855,18185,44870,45561,17278,45043,18794,44869,17237,37057,37267,13988,44674,18237,18446,43800,45517,44669)
Unknown column 'np.person' in 'where clause'