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,44775,44849,18042,44884,44739,45051,44711,5259,44835,44765,44878,43800,36472,44687,45072,3,45518,6875,45516,5993,34194,13425,17601,44853,44640,17835,44766,44836,18430,17848,18996,17527,4686,14622,45561,44745,44855,18446,17839,44856,18688,44669,44762,44894,13922,44854,28530,44848,44865,30963,28313,18794,17492,45517,24438,14402,17981,6862,44764,44858,18981,44674,17092,44863,10402,45421,18286,30986,44689)
Unknown column 'np.person' in 'where clause'