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 (8753,18301,44739,44640,44849,24411,45517,18446,17703,18648,17839,18996,17114,18427,44855,10402,18172,44835,14622,3,44856,28530,17492,37057,17904,17527,43800,45051,44894,44873,18894,17237,13425,18650,18794,45561,24441,6782,44745,5993,44775,17848,17756,44851,31354,9341,44837,17601,44869,44868,36472,18719,17556,13988,17771,45518,44669,44764,16885,44884,44674,44687,18353,17278,17092,17755,18042,44875,24438,6609)
Unknown column 'np.person' in 'where clause'