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 (5410,18042,45517,6862,44711,17904,4686,37267,44835,3883,18648,18237,45277,14622,44873,44867,44856,18301,24411,16935,44861,6609,18286,45567,45518,44868,18688,28530,45072,17278,44765,44669,44878,5388,45262,44855,4765,36472,17756,17771,45042,18719,32454,44836,31354,17492,28313,44745,45043,18279,45561,44884,44640,44764,44674,17556,44689,17527,44848,18446,30986,44845,44863,18185,45229,44869,8753,6875,13922,43800)
Unknown column 'np.person' in 'where clause'