[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: [165796] [SQL] SELECT * FROM d_block WHERE idea_id = ? ORDER BY position ASC, id ASC | Params: [165796] [SQL] SELECT * FROM d_topic WHERE slug IN (?,?,?,?,?) ORDER BY name | Params: ["Motivation & Inspiration","Habits","Problem Solving","Business","Startups"] [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: [165796,"Motivation & Inspiration",3] [SQL] SELECT * FROM d_user WHERE id = ? | Params: [0] [SQL] UPDATE d_idea SET total_reads = total_reads + 1 WHERE id = ? | Params: [165796]
Curated from: web.get-headway.com
Ideas, facts & insights covering these topics:
4 ideas · 0 reads
”Perception is personal. You have more control over what you believe than you realize.” ~ Ryan Holiday
“To believe in something and not to live it is dishonest.” ~ Ryan Holiday
”You can see failure as a full stop or a bend in the road. The choice is yours.” ~ Ryan Holiday
“Life is very rarely a bed of roses. Your will allows you to get up, dust yourself off, and carry on.” ~ Ryan Holiday
“Regardless of the setback, you should not stop having a passion for what you do.“
~ Ryan Holiday