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 (19057,16935,44867,44865,13988,44671,17237,17904,45072,16885,44711,17527,18430,19078,17556,18446,44837,18652,18279,44836,17848,45177,17601,45277,44745,17351,6609,8753,5388,31354,44775,6875,24438,44739,44861,17278,18042,43800,34194,44853,28313,5993,44835,44851,17703,45286,44873,44640,4765,24412,44868,24411,44863,45262,44878,44764,44766,45515,14622,17657,44531,18172,18650,45043,18301,18237,18719,6782,44854,44855)
Unknown column 'np.person' in 'where clause'