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,17527,17904,45518,44884,6875,36472,44689,45043,44685,4765,45051,45277,44894,5259,37267,30986,44866,37057,44775,44854,14622,28530,44875,45515,32454,17278,18301,18652,9341,5410,45177,17335,44762,45180,45072,6862,18237,18185,17771,30963,13922,44765,44855,18446,17657,45517,44845,43800,17839,14402,44863,3,44671,44873,16935,45042,24411,4686,44837,44878,18042,22509,24412,39676,45229,18279,18648,18650,24441)
Unknown column 'np.person' in 'where clause'