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 (18446,3,18185,4686,17904,18301,44669,6875,13922,30986,44687,44689,16935,17703,44685,17335,44674,24411,44764,45177,17657,17835,44863,44762,34194,17092,18279,44765,31354,44875,44640,45516,44845,18648,28313,24438,18042,10402,44878,45286,18794,45042,44775,22509,45515,5259,45229,44768,18172,45277,18572,44851,28530,17771,44861,39676,17492,45518,44836,18237,44739,45567,45346,44858,45072,43800,44671,17278,18430,9341)
Unknown column 'np.person' in 'where clause'