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 (44863,18572,18650,45515,24441,3,44875,24411,44858,45567,44762,45043,28530,17703,24438,17278,17771,44873,3883,44835,44767,14402,44851,17755,17904,17009,18652,5410,44856,18301,44671,18279,16935,17335,36472,18719,18042,44861,44848,18185,44739,17657,18894,44866,9341,17492,30135,37267,18996,44854,45177,30963,18353,45561,44853,44768,17601,44674,14622,4765,32454,31354,22509,44865,6875,13922,17092,17756,44878,18427)
Unknown column 'np.person' in 'where clause'