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 (17278,6782,18279,45042,44685,44766,13988,18185,5388,45561,44836,24412,44767,18353,10402,44866,19057,3883,45517,3,34194,17839,17848,45277,44861,18430,44837,18981,18894,18688,24438,24441,6862,45043,43800,44674,9341,24411,18652,4765,44687,13922,44873,4686,17237,18301,45177,44762,44768,44853,44669,44845,18650,44765,37267,17556,17981,37057,44689,5993,44739,18794,44745,44775,44849,30135,17092,45518,17835,45516)
Unknown column 'np.person' in 'where clause'