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 (45515,44868,44745,4765,44856,3883,44854,45517,44858,45042,45516,43800,13,6782,45567,18894,18688,44739,14622,28530,19057,24441,18648,13425,13988,17009,44764,16885,44768,17335,9341,44835,44865,5388,3,45518,17848,17771,44674,28313,5410,22509,44875,44866,18185,44845,13922,6862,44762,18427,30986,44853,31354,18446,37267,32454,44669,6875,44855,45277,44869,44775,24438,17755,17835,17703,45177,6609,30135,39676)
Unknown column 'np.person' in 'where clause'