[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: [166189] [SQL] SELECT * FROM d_block WHERE idea_id = ? ORDER BY position ASC, id ASC | Params: [166189] [SQL] SELECT * FROM d_topic WHERE slug IN (?,?,?,?,?) ORDER BY name | Params: ["Psychology","Health","Motivation & Inspiration","Habits","Mental Health"] [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: [166189,"Psychology",3] [SQL] SELECT * FROM d_user WHERE id = ? | Params: [0] [SQL] UPDATE d_idea SET total_reads = total_reads + 1 WHERE id = ? | Params: [166189]
Curated from: deepstash.com
Ideas, facts & insights covering these topics:
4 ideas · 5 reads
A big contributor to joy is the gratitude we’re able to feel for everything around us. If you take your life for granted, you’ll be too busy wishing things were different to notice the good that’s present. Slow down and observe.