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 (18042,44766,44745,18794,17278,44835,18286,30963,18996,44685,24412,44851,44884,36472,44856,16885,45567,45043,44875,45346,45517,44873,45561,44865,30135,30986,31354,4686,18237,24441,28530,45229,44689,6875,17492,6862,17335,45177,19057,44845,3883,44868,5410,9341,18688,18572,45180,44762,44775,44858,44849,45516,44764,44863,17237,44878,6609,24438,44894,8753,18185,17657,44855,44854,18430,45072,17527,18279,5993,17092)
Unknown column 'np.person' in 'where clause'