10 lines
112 B
MySQL
10 lines
112 B
MySQL
|
SELECT
|
||
|
authors.id,
|
||
|
authors.name
|
||
|
FROM
|
||
|
authors,
|
||
|
posts
|
||
|
WHERE
|
||
|
posts.authorid = authors.id AND
|
||
|
posts.id = :id;
|