[SQL] SELECT i.*, u.name AS author_name, u.username AS author_username, u.avatar_url AS author_avatar FROM d_idea i left JOIN d_user u ON u.id = i.user_id WHERE i.id = ? AND i.is_draft = 0 | Params: [163186] [SQL] SELECT * FROM d_block WHERE idea_id = ? ORDER BY position ASC, id ASC | Params: [163186] [SQL] SELECT * FROM d_topic WHERE slug IN (?) ORDER BY name | Params: ["History"] [SQL] SELECT i.*, u.name AS author_name, u.username AS author_username, u.avatar_url AS author_avatar FROM d_idea i left JOIN d_user u ON u.id = i.user_id WHERE i.is_draft = 0 AND i.id != ? AND i.hashtags LIKE CONCAT('%', ?, '%') ORDER BY i.total_reads DESC LIMIT ? | Params: [163186,"History",3] [SQL] SELECT * FROM d_user WHERE id = ? | Params: [0] [SQL] UPDATE d_idea SET total_reads = total_reads + 1 WHERE id = ? | Params: [163186]
Curated from:
en.wikipedia.org
Ideas, facts & insights covering these topics:
1 ideas · 16 reads
Representatives of Spain and the United States signed a peace treaty in Paris on December 10, 1898, which established the independence of Cuba, ceded Puerto Rico and Guam to the United States, and allowed the victorious power to purchase the Philippines Islands from Spain for $20 million.