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 (24411,18301,24438,44768,45229,45561,17771,44640,18648,17335,9341,44836,28313,13988,44775,18430,16885,44845,45072,44766,17527,45051,17703,18572,44851,44849,16935,44835,44674,44865,14622,13425,32454,17756,44861,44687,18172,18446,24412,17492,13922,44867,44671,4686,5993,3883,45042,17601,17114,45277,31354,4765,44739,13,30986,6609,30963,45177,34194,17351,17278,45421,44873,44855,44878,18981,17848,22509,45518,44854)
Unknown column 'np.person' in 'where clause'