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 (6862,44836,37057,45042,44854,13,17755,45229,44884,24441,18172,18301,28530,18981,16935,18427,18430,44689,30135,44848,18353,44687,44764,45561,30963,5388,44861,44868,14622,43800,17839,18042,44745,14402,36472,18652,44640,17556,44768,44674,17904,17237,13988,44767,6609,17981,18237,44869,24438,17657,44766,44845,18648,45180,45072,44856,44671,44870,17601,17835,37267,18894,5259,17703,45286,3,24411,44669,45346,18719)
Unknown column 'np.person' in 'where clause'