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 (44745,4765,17527,44873,6862,24411,44870,44878,18688,45180,18286,44674,45517,17835,24438,18981,18279,18237,44768,13,17981,24441,45229,17771,44884,44851,18427,44861,45177,17755,16885,44858,44767,18042,17839,44875,45286,9341,45051,13988,45421,43800,17657,44775,18650,44687,45518,44739,36472,45567,18301,44766,44671,44866,30963,44865,45346,3,4686,18900,45262,18430,34194,44853,22509,44531,44868,17335,16935,44685)
Unknown column 'np.person' in 'where clause'