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 (18650,45072,45277,18981,44848,17237,24411,18996,17601,37267,45262,44863,13425,9341,45180,18900,43800,17335,44867,18279,3,18572,4686,44868,3883,22509,24438,30135,44745,18688,18427,44687,5388,17848,44739,45517,44669,17009,45051,8753,24412,45516,45346,13922,44685,17981,44640,13,44878,44762,18172,44768,30963,14622,44869,18648,44531,14402,17771,37057,39676,45561,13988,45177,6609,45229,44849,18185,45043,16935)
Unknown column 'np.person' in 'where clause'