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 (44640,44835,22509,8753,44669,17839,44878,10402,30986,44689,18446,17771,18652,44671,17351,18719,13988,18794,17009,18650,44531,16935,44861,17492,31354,18894,45042,43800,24411,44865,44711,45515,44765,6609,45177,18353,17904,44764,44768,39676,44745,13425,9341,18042,17755,45561,45517,4686,18572,44766,13,44762,5993,45043,44674,45180,45277,45229,6862,13922,18279,24438,44739,18981,17527,17335,44873,45286,19057,44856)
Unknown column 'np.person' in 'where clause'