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 (18900,3,16885,18446,16935,13,44764,18719,17835,44845,17556,18688,17839,44869,28313,22509,14402,17703,44765,24412,45180,45518,44669,45567,13988,45421,45517,5993,34194,4686,5259,18572,18042,18650,17492,6609,44687,44775,9341,36472,44739,13922,18172,44767,19078,44640,44531,18981,31354,28530,44685,44861,30963,6862,45277,18894,44856,44894,45561,30135,44837,17756,44848,18427,44762,44853,18794,44835,45051,18353)
Unknown column 'np.person' in 'where clause'