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 (17703,44861,18996,44836,17556,43800,45567,44854,45516,45515,5410,18900,39676,24411,24412,45177,44869,44640,17092,44851,14622,31354,13988,45262,18301,44875,28530,44865,44768,8753,18648,44531,45042,44868,5993,17492,45346,5388,45072,45051,45518,18042,19078,18894,45561,45286,24441,14402,44739,13,44762,44867,9341,32454,10402,44858,44671,18279,3,44863,17009,45277,18427,44685,17527,17657,44745,44689,18353,44849)
Unknown column 'np.person' in 'where clause'