Untitled
public php v1 · immutable $query="SELECT news.id, news.title, news.topic, news.text, news.date, news.file, topic.title as topic_id FROM news LEFT JOIN topic ON news.topic = topic.id WHERE published = '1' AND topic.tipo = 'ns' AND topic.p_home = '1' AND topic.vit = '1' AND news.date = '".date("Y-m-d")."' ORDER BY news.date DESC, news.id DESC;";